[Pkg-shadow-commits] r594 - trunk/tests/convtools/01
Nicolas FRANCOIS
nekral-guest at costa.debian.org
Wed Oct 12 20:11:45 UTC 2005
Author: nekral-guest
Date: 2005-10-12 20:11:44 +0000 (Wed, 12 Oct 2005)
New Revision: 594
Modified:
trunk/tests/convtools/01/run
Log:
Update the testsuite for #166793
Modified: trunk/tests/convtools/01/run
===================================================================
--- trunk/tests/convtools/01/run 2005-10-12 19:42:58 UTC (rev 593)
+++ trunk/tests/convtools/01/run 2005-10-12 20:11:44 UTC (rev 594)
@@ -57,9 +57,15 @@
diff -au /etc/passwd data/2/passwd
diff -au /etc/shadow tmp/shadow.2
diff -au /etc/group data/1/group
+perms=$(stat -c "%a %u %G" /etc/shadow)
+if [ "$perms" != "440 0 shadow" ]
+then
+ echo "Wrong mode or owners on /etc/shadow."
+ exit 1
+fi
if [ -f /etc/gshadow ]
then
- echo "/etc/gshadow should not exist. "
+ echo "/etc/gshadow should not exist."
exit 1
fi
echo "OK"
More information about the Pkg-shadow-commits
mailing list