X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3f655ca08d1d59d274978d99da18e8cc691db6b3..fd913297faad60dab4cdaa01400e9ad7d8ce7104:/authenticate.c diff --git a/authenticate.c b/authenticate.c index b8f63acd..afb85541 100644 --- a/authenticate.c +++ b/authenticate.c @@ -21,6 +21,7 @@ #include "rsync.h" extern char *password_file; +extern int log_got_error; /*************************************************************************** encode a buffer using base64 - simple and slow algorithm. null terminates @@ -307,6 +308,9 @@ void auth_client(int fd, const char *user, const char *challenge) pass = getpass("Password: "); } + /* Any errors output during password handling aren't transfer errors. */ + log_got_error = 0; + if (!pass) pass = "";