Improved the function comments for read_line() and slightly tweaked
[rsync/rsync.git] / authenticate.c
index b147112..d1ffca6 100644 (file)
@@ -269,7 +269,8 @@ void auth_client(int fd, char *user, char *challenge)
        char pass2[30];
        extern char *password_file;
 
-       if (!user || !*user) return;
+       if (!user || !*user)
+               user = "nobody";
 
        if (!(pass=getpassf(password_file)) && !(pass=getenv("RSYNC_PASSWORD"))) {
                /* XXX: cyeoh says that getpass is deprecated, because