[Bug 705449] New: rsync does not return an error message if verbose is not specified twice.
https://bugzilla.novell.com/show_bug.cgi?id=705449 https://bugzilla.novell.com/show_bug.cgi?id=705449#c0 Summary: rsync does not return an error message if verbose is not specified twice. Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: i686 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: lnxgnome@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 An illegal operation (due to target system file permissions) is attempted, but rsync reports success (return code 0, no error message) when it should fail.
rpm -q rsync rsync-3.0.7-8.9.1.i586
Reproducible: Always Steps to Reproduce: Transfer a file from the local host to a remote host (via ssh, with ssh-keys in place on the remote host for password-less login) to a valid user, but trying to place the file into a location that the user does not have permission to. Actual Results:
rsync -pt ~/xdu oracle@remotehost:/root/bin/xdu
echo $? 0
rsync -vpt ~/xdu oracle@remotehost:/root/bin/xdu
sent 34 bytes received 16 bytes 33.33 bytes/sec total size is 1749 speedup is 34.98
echo $? 0
rsync -vvpt ~/xdu oracle@remotehost:/root/bin/xdu opening connection using: ssh -l oracle remotehost rsync --server -vvtpe.Lsf . /root/bin/xdu delta transmission enabled rsync: recv_generator: failed to stat "/root/bin/xdu": Permission denied (13) total: matches=0 hash_hits=0 false_alarms=0 data=0
sent 34 bytes received 16 bytes 100.00 bytes/sec total size is 1749 speedup is 34.98 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7]
echo $? 23
Expected Results: A non-zero return code should be produced, without regard to the level of verbose, when an error occurs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=705449 https://bugzilla.novell.com/show_bug.cgi?id=705449#c1 Petr Uzelchanged: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |lnxgnome@gmail.com --- Comment #1 from Petr Uzel 2011-08-02 15:20:23 UTC --- Can not reproduce here: > puzel@foxbat ~ $ rpm -q rsync rsync-3.0.7-8.9.1.x86_64 > rsync -pt ~/file puzel@zelva.suse.cz:/usr/bin/du ; echo $? rsync: link_stat "/home/puzel/file" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7] 23 > rsync -vpt ~/file puzel@zelva.suse.cz:/usr/bin/du ; echo $? rsync: link_stat "/home/puzel/file" failed: No such file or directory (2) sent 10 bytes received 12 bytes 44.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7] 23 > rsync -vvpt ~/file puzel@zelva.suse.cz:/usr/bin/du ; echo $? opening connection using: ssh -l puzel zelva.suse.cz rsync --server -vvtpe.Lsf /usr/bin/du rsync: link_stat "/home/puzel/file" failed: No such file or directory (2) delta-transmission enabled total: matches=0 hash_hits=0 false_alarms=0 data=0 sent 10 bytes received 12 bytes 44.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7] 23 What are the permissions of /root, /root/bin and /root/bin/xdu ? Please try with rsync -vvv and provide its output. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c2
--- Comment #2 from Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c3
Keith Hopkins
rsync -vvv -pt ./xdu oracle@remotehost:/root/bin/xdu ; echo RC=$? opening connection using: ssh -l oracle remotehost rsync --server -vvvtpe.Lsf . /root/bin/xdu [sender] make_file(xdu,*,0) send_file_list done send_files starting server_recv(2) starting pid=30474438 received 1 names recv_file_list done get_local_name count=1 /root/bin/xdu generator starting pid=30474438 recv_files(1) starting delta-transmission enabled recv_generator(xdu,0) xdu is uptodate send_files(0, ./xdu) send_files phase=1 generate_files phase=1 recv_files(xdu) recv_files phase=1 generate_files phase=2 send_files phase=2 send files finished total: matches=0 hash_hits=0 false_alarms=0 data=0 recv_files phase=2 generate_files phase=3 recv_files finished generate_files finished
sent 27 bytes received 15 bytes 84.00 bytes/sec total size is 2115 speedup is 50.36 [sender] _exit_cleanup(code=0, file=main.c, line=1042): about to call exit(0) RC=0 (as root) # ls -dl /root drwxr-xr-x 4 root system 4096 Aug 29 12:06 /root # ls -dl /root/bin drwxr-xr-x 2 root system 256 Aug 24 11:11 /root/bin # ls -dl /root/bin/xdu -r-xr-xr-x 1 root system 2115 Aug 24 11:11 /root/bin/xdu (as oracle)
ls -dl /root drwxr-xr-x 4 root system 4096 Aug 29 12:06 /root ls -dl /root/bin drwxr-xr-x 2 root system 256 Aug 24 11:11 /root/bin ls -dl /root/bin/xdu -r-xr-xr-x 1 root system 2115 Aug 24 11:11 /root/bin/xdu
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c5
Vitezslav Cizek
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c
Vitezslav Cizek
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c6
--- Comment #6 from Vitezslav Cizek
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c7
--- Comment #7 from Keith Hopkins
https://bugzilla.novell.com/show_bug.cgi?id=705449
https://bugzilla.novell.com/show_bug.cgi?id=705449#c8
Vitezslav Cizek
participants (1)
-
bugzilla_noreply@novell.com