swap order of bitwise and to avoid confusion in perl < 5.10
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 1 Aug 2009 20:36:19 +0000 (16:36 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 1 Aug 2009 20:36:19 +0000 (16:36 -0400)
src/share/checkperms

index 8e6d7ad48606b99bfb0dae377599b8c6cb825f46..7a66b435e26e7f76abdb8349079ed1d1567b92f8 100755 (executable)
@@ -69,11 +69,11 @@ sub permissions_ok {
                   $path, $stat->uid, $user->name, $user->uid);
   }
 
-  if (S_IWGRP & $stat->mode) {
+  if ($stat->mode & S_IWGRP) {
     return sprintf("improper group writability on '%s'", $path);
   }
 
-  if (S_IWOTH & $stat->mode) {
+  if ($stat->mode & S_IWOTH) {
     return sprintf("improper other writability on '%s'", $path);
   }