]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Check for =u bug.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Apr 2005 16:31:49 +0000 (16:31 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 28 Apr 2005 16:31:49 +0000 (16:31 +0000)
tests/chmod/equals

index 95a1e6587015d8c680fd6ce37532b6dbaa5ee3a0..a22017eb63bc4c72a58dccb94a9e0c3d922b4e08 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 # Make sure chmod mode arguments of the form A=B work properly.
 # Before fileutils-4.1.2, some of them didn't.
+# Also, before coreutils-5.3.1, =[ugo] sometimes didn't work.
 
 if test "$VERBOSE" = yes; then
   set -x
@@ -38,4 +39,9 @@ for src in u g o; do
   done
 done
 
+umask 027
+chmod a=,u=rwx,=u f || fail=1
+set _ `ls -l f`; shift; actual_perms=$1
+test "$actual_perms" = "-rwxr-x---" || fail=1
+
 (exit $fail); exit $fail