diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-18 12:28:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-18 12:28:05 +0200 |
commit | 0f022c05658a4c014ebdebdc55461afa890c98a0 (patch) | |
tree | 41afeb840bf0256863b137b190f3df1eb7a9d06f /testsuite/cpio.tests | |
parent | 5070124763a96d36b94b2a2e58df27ada3623cb8 (diff) | |
download | busybox-w32-0f022c05658a4c014ebdebdc55461afa890c98a0.tar.gz busybox-w32-0f022c05658a4c014ebdebdc55461afa890c98a0.tar.bz2 busybox-w32-0f022c05658a4c014ebdebdc55461afa890c98a0.zip |
cpio.tests: mention suid bits too, not only sgid
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/cpio.tests')
-rwxr-xr-x | testsuite/cpio.tests | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 42e3ff8dc..5b397b01c 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests | |||
@@ -97,14 +97,14 @@ usr | |||
97 | " "" "" | 97 | " "" "" |
98 | SKIP= | 98 | SKIP= |
99 | 99 | ||
100 | # chown on a link was affecting file, dropping its sgid bits | 100 | # chown on a link was affecting file, dropping its suid/sgid bits |
101 | rm -rf cpio.testdir | 101 | rm -rf cpio.testdir |
102 | optional FEATURE_CPIO_O | 102 | optional FEATURE_CPIO_O |
103 | mkdir cpio.testdir | 103 | mkdir cpio.testdir |
104 | touch cpio.testdir/file | 104 | touch cpio.testdir/file |
105 | chmod 6755 cpio.testdir/file # set the suid/sgid bit | 105 | chmod 6755 cpio.testdir/file # sets suid/sgid bits |
106 | ln -sf file cpio.testdir/link | 106 | ln -sf file cpio.testdir/link |
107 | testing "cpio restores sgid bits" \ | 107 | testing "cpio restores suid/sgid bits" \ |
108 | "cd cpio.testdir && { echo file; echo link; } | cpio -ovHnewc >pack.cpio && rm ???? && cpio -idmvu <pack.cpio 2>/dev/null; | 108 | "cd cpio.testdir && { echo file; echo link; } | cpio -ovHnewc >pack.cpio && rm ???? && cpio -idmvu <pack.cpio 2>/dev/null; |
109 | stat -c '%a %n' file" \ | 109 | stat -c '%a %n' file" \ |
110 | "\ | 110 | "\ |