Blame test/malformed-restore.test

rpm-build 0a0c83
Test for malformed input to --restore
rpm-build 0a0c83
 https://savannah.nongnu.org/bugs/index.php?28185
rpm-build 0a0c83
rpm-build 0a0c83
	$ cp "%TESTDIR/malformed-restore-double-owner.acl" tmp.acl
rpm-build 0a0c83
	$ sed -i "s/USER/%TUSER/g" tmp.acl
rpm-build 0a0c83
	$ sed -i "s/GROUP/%TGROUP/g" tmp.acl
rpm-build 0a0c83
	$ touch tmp
rpm-build 0a0c83
	$ setfacl --restore tmp.acl
rpm-build 0a0c83
	> setfacl: tmp.acl: Invalid argument
rpm-build 0a0c83
	$ rm tmp.acl tmp
rpm-build 0a0c83
rpm-build 0a0c83
	$ mkdir tmp
rpm-build 0a0c83
	$ chmod 1777 tmp
rpm-build 0a0c83
	$ getfacl tmp > tmp.acl
rpm-build 0a0c83
	$ sed -i 's/--t/--x/g' tmp.acl
rpm-build 0a0c83
	$ setfacl --restore tmp.acl
rpm-build 0a0c83
	> setfacl: tmp.acl: Invalid argument
rpm-build 0a0c83
	$ rmdir tmp
rpm-build 0a0c83
	$ rm tmp.acl