Package: cpio
Version: 2.9-7
Severity: important

# ./cpio-bug 
#!/bin/sh
cat cpio-bug
umask 077
rm -rf wrongperms newdir
mkdir -m 755 wrongperms
>wrongperms/file
find wrongperms -depth | ./cpio -pmaud newdir
ls -laR wrongperms
ls -laR newdir
### end of script ###
0 blocks
wrongperms:
total 8
drwxr-xr-x 2 root root 4096 Dec 28 14:47 .
drwxr-xr-x 7 root root 4096 Dec 28 14:47 ..
-rw------- 1 root root    0 Dec 28 14:47 file
newdir:
total 12
drwx------ 3 root root 4096 Dec 28 14:47 .
drwxr-xr-x 7 root root 4096 Dec 28 14:47 ..
drwx------ 2 root root 4096 Dec 28 14:47 wrongperms

newdir/wrongperms:
total 8
drwx------ 2 root root 4096 Dec 28 14:47 .
drwx------ 3 root root 4096 Dec 28 14:47 ..
-rw------- 1 root root    0 Dec 28 14:47 file
# 

The directory wrongperms in the copy should have 755 permissions.

This is an upstream bug, introduced with 2.9. (tested 2.8 and 2.9 plain
upstream, 2.8 works, 2.9 does not).



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to