diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-08-01 16:36:19 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2009-08-01 16:36:19 -0400 |
commit | cb9929035b9801c5349385165cb7fdbdeb6ba735 (patch) | |
tree | a14733a5c0cc08116c94f83452c15ca88592d86f /src/share | |
parent | 87c2a239f7daa2beab99dd135f04a1458f96690b (diff) |
swap order of bitwise and to avoid confusion in perl < 5.10
Diffstat (limited to 'src/share')
-rwxr-xr-x | src/share/checkperms | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/checkperms b/src/share/checkperms index 8e6d7ad..7a66b43 100755 --- a/src/share/checkperms +++ b/src/share/checkperms @@ -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); } |