From: Denys Vlasenko Date: Fri, 18 Jun 2010 10:28:05 +0000 (+0200) Subject: cpio.tests: mention suid bits too, not only sgid X-Git-Tag: 1_17_0~65^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f022c05658a4c014ebdebdc55461afa890c98a0;p=oweals%2Fbusybox.git cpio.tests: mention suid bits too, not only sgid Signed-off-by: Denys Vlasenko --- 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 " "" "" 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 optional FEATURE_CPIO_O mkdir cpio.testdir 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 -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 /dev/null; stat -c '%a %n' file" \ "\