diff options
author | Wayne Davison <wayned@samba.org> | 2004-03-31 18:52:38 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-03-31 18:52:38 +0000 |
commit | ef383c0d3295f65e555441c416f59d1f0a8588f8 (patch) | |
tree | 3727b74b122ef72ebd85dc8eb27ed6020968f56b /authenticate.c | |
parent | 8dcf93356e23556b1441d4df195c11aeaa35ab6e (diff) | |
download | rsync-ef383c0d3295f65e555441c416f59d1f0a8588f8.tar.gz |
The auth_client function must not return without outputting something
on the socket, so a NULL or empty username now defaults to "guest".
Diffstat (limited to 'authenticate.c')
-rw-r--r-- | authenticate.c | 3 |
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 |