Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77943e6
)
Stop password errors from getting reported as transfer errors.
author
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 18:14:36 +0000
(18:14 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 18:14:36 +0000
(18:14 +0000)
authenticate.c
patch
|
blob
|
blame
|
history
diff --git
a/authenticate.c
b/authenticate.c
index
b8f63ac
..
afb8554
100644
(file)
--- 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 = "";