cvs commit: src/usr.bin/cpio cpio.c
Tim Kientzle
kientzle at FreeBSD.org
Wed Jul 30 18:19:29 UTC 2008
kientzle 2008-07-30 03:35:45 UTC
FreeBSD src repository
Modified files:
usr.bin/cpio cpio.c
Log:
SVN rev 180987 on 2008-07-30 03:35:45Z by kientzle
MfP4: Preserve permissions by default.
In particular, this fixes the oddity that -dumpl would apply
umask to copied dirs (which are created in the target tree)
but not to "copied" files (which are only linked). After
this change:
$ ls -ld a a/b a/b/c
d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a
drwxr----x 3 tim tim 512 Jul 29 20:09 a/b
dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c
$ (echo a; echo a/b; echo a/b/c) | cpio -dumpl o
$ cd o
$ ls -ld a a/b a/b/c
d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a
drwxr----x 3 tim tim 512 Jul 29 20:09 a/b
dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c
Revision Changes Path
1.10 +1 -0 src/usr.bin/cpio/cpio.c
More information about the cvs-src
mailing list