Bas van Schaik
2007-Nov-01 12:10 UTC
rsync reports "some files could not be transferred" (code 23) when problems occur with password-file
Hi all, I think I just found a small bug in rsync... It has costed me about half an hour searching for a problem which actually didn't exist! If you use rsync like this:> rsync --password-file=/tmp/non-existing-file /tmp/somefile foo@bar::tmp/Rsync will ask for the password since the supplied file doesn't exist:> rsync: could not open password file "/tmp/non-existing-file": No such > file or directory (2) > Password: > rsync error: some files could not be transferred (code 23) at > main.c(977) [sender=2.6.9]But actually, the file '/tmp/somefile' did get transferred to server 'bar'. When not supplying the bogus password file, rsync will again ask for the password, but not report the code 23. Bottom line: rsync reports a code 23 when there's a problem with the password file, even when the right password is supplied and files are transferred. Regards, -- Bas van Schaik
Wayne Davison
2007-Nov-05 15:11 UTC
rsync reports "some files could not be transferred" (code 23) when problems occur with password-file
On Thu, Nov 01, 2007 at 12:59:32PM +0100, Bas van Schaik wrote:> > rsync: could not open password file "/tmp/non-existing-file": No such file or directory (2) > > Password: > > rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]This is now fixed in the CVS version of rsync. ..wayne..