diff options
Diffstat (limited to 'test/malformed-restore.test')
-rw-r--r-- | test/malformed-restore.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/malformed-restore.test b/test/malformed-restore.test new file mode 100644 index 0000000..e92b75b --- /dev/null +++ b/test/malformed-restore.test @@ -0,0 +1,19 @@ +Test for malformed input to --restore + https://savannah.nongnu.org/bugs/index.php?28185 + + $ cp malformed-restore-double-owner.acl tmp.acl + $ sed -i "s/USER/%TUSER/g" tmp.acl + $ sed -i "s/GROUP/%TGROUP/g" tmp.acl + $ touch tmp + $ setfacl --restore tmp.acl + > setfacl: tmp.acl: Invalid argument + $ rm tmp.acl tmp + + $ mkdir tmp + $ chmod 1777 tmp + $ getfacl tmp > tmp.acl + $ sed -i 's/--t/--x/g' tmp.acl + $ setfacl --restore tmp.acl + > setfacl: tmp.acl: Invalid argument + $ rmdir tmp + $ rm tmp.acl |