projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c2a23
)
swap order of bitwise and to avoid confusion in perl < 5.10
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Sat, 1 Aug 2009 20:36:19 +0000
(16:36 -0400)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Sat, 1 Aug 2009 20:36:19 +0000
(16:36 -0400)
src/share/checkperms
patch
|
blob
|
history
diff --git
a/src/share/checkperms
b/src/share/checkperms
index 8e6d7ad48606b99bfb0dae377599b8c6cb825f46..7a66b435e26e7f76abdb8349079ed1d1567b92f8 100755
(executable)
--- 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);
}