diff options
-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 | "\ |