mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 13:24:15 -04:00
Stop password errors from getting reported as transfer errors.
This commit is contained in:
1 parent
77943e69aa
commit
c9b16cdaba
1 file changed
+4
@@ -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 = "";
|
||||
|
||||
|
||||
Reference in new issue
Block a user