http://www.nabble.com/Re%3A-cpio-2.9%3A-sets-unexpected-%28wrong-%29-file-owner-UID-td15689526.html
solves the Problem, but only for cpio -i, thus for the modified script:
# ./cpio-bug
#!/bin/sh
cat cpio-bug
workdir="$PWD"
umask 077
rm -rf wrongperms newdir
mkdir -m 755 wrongperms
>wrongperms/fi
Tested new experimental version: cpio (GNU cpio) 2.9.90
Bug still present :-(.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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
3 matches
Mail list logo