Displaying 1 result from an estimated 1 matches for "mytesttarget".
2012 Feb 21
0
Permissions wrong if rsync terminates prematurely
...1533320 4 drwxr-xr-x 2 mhaa mhaa 4096 Feb 21 21:02
mytest/foo2/bar
1443165 4 -rw-r--r-- 1 mhaa mhaa 4 Feb 21 21:02
mytest/foo2/bar/baz
I ran rsync with strace as follows:
$ strace -f -ff -o /tmp/rsync-strace rsync -axv --temp-dir=/tmp
--timeout=20 mytest /tmp/mytesttarget
strace output shows that the directories are at first created with 700
permissions and the correct permissions are assigned later:
(lots of output omitted)
rsync-strace.5640:mkdir("mytest/foo1", 0700) = 0
rsync-strace.5640:mkdir("mytest/foo2", 0700)...