summaryrefslogtreecommitdiff
path: root/src/share
diff options
context:
space:
mode:
Diffstat (limited to 'src/share')
-rwxr-xr-xsrc/share/checkperms4
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);
}