cpio.tests: mention suid bits too, not only sgid
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5070124763
commit
0f022c0565
@ -97,14 +97,14 @@ usr
|
|||||||
" "" ""
|
" "" ""
|
||||||
SKIP=
|
SKIP=
|
||||||
|
|
||||||
# chown on a link was affecting file, dropping its sgid bits
|
# chown on a link was affecting file, dropping its suid/sgid bits
|
||||||
rm -rf cpio.testdir
|
rm -rf cpio.testdir
|
||||||
optional FEATURE_CPIO_O
|
optional FEATURE_CPIO_O
|
||||||
mkdir cpio.testdir
|
mkdir cpio.testdir
|
||||||
touch cpio.testdir/file
|
touch cpio.testdir/file
|
||||||
chmod 6755 cpio.testdir/file # set the suid/sgid bit
|
chmod 6755 cpio.testdir/file # sets suid/sgid bits
|
||||||
ln -sf file cpio.testdir/link
|
ln -sf file cpio.testdir/link
|
||||||
testing "cpio restores sgid bits" \
|
testing "cpio restores suid/sgid bits" \
|
||||||
"cd cpio.testdir && { echo file; echo link; } | cpio -ovHnewc >pack.cpio && rm ???? && cpio -idmvu <pack.cpio 2>/dev/null;
|
"cd cpio.testdir && { echo file; echo link; } | cpio -ovHnewc >pack.cpio && rm ???? && cpio -idmvu <pack.cpio 2>/dev/null;
|
||||||
stat -c '%a %n' file" \
|
stat -c '%a %n' file" \
|
||||||
"\
|
"\
|
||||||
|
Loading…
Reference in New Issue
Block a user