summaryrefslogtreecommitdiff
path: root/authenticate.c
diff options
context:
space:
mode:
Diffstat (limited to 'authenticate.c')
-rw-r--r--authenticate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/authenticate.c b/authenticate.c
index b147112a..9254fb0b 100644
--- a/authenticate.c
+++ b/authenticate.c
@@ -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 = "guest";
if (!(pass=getpassf(password_file)) && !(pass=getenv("RSYNC_PASSWORD"))) {
/* XXX: cyeoh says that getpass is deprecated, because