diff options
author | Brandon Philips <bphilips@suse.de> | 2009-06-22 22:24:56 -0700 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2009-06-23 10:07:12 +0200 |
commit | 8c635f874bfdfd5225c4320083ced5c899ecf52b (patch) | |
tree | ca74365c080cb6a1eab9009ec8138f4734008c86 /test | |
parent | 63451a06b7484d220750ed8574d3ee84e156daf5 (diff) | |
download | acl-8c635f874bfdfd5225c4320083ced5c899ecf52b.tar.gz |
Include the S_ISUID, S_ISGID, S_ISVTX flags in the getfacl output, and restore them with "setfacl --restore=file".
Diffstat (limited to 'test')
-rw-r--r-- | test/sbits-restore.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/sbits-restore.test b/test/sbits-restore.test new file mode 100644 index 0000000..e5e4fb2 --- /dev/null +++ b/test/sbits-restore.test @@ -0,0 +1,22 @@ +Ensure setting of SUID/SGID/sticky via --restore works + + $ umask 022 + $ mkdir d + $ touch d/g + $ touch d/u + $ chmod u+s d/u + $ chmod g+s d/g + $ chmod +t d + $ getfacl -R d > d.acl + $ rm -R d + $ mkdir d + $ touch d/g + $ touch d/u + $ setfacl --restore d.acl + $ ls -dl d | awk '{print $1}' + > drwxr-xr-t + $ ls -dl d/u | awk '{print $1}' + > -rwSr--r-- + $ ls -dl d/g | awk '{print $1}' + > -rw-r-Sr-- + $ rm -Rf d |