aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-05-26 13:07:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-05-26 13:07:02 +1200
commitc6d77ae5cf3c069a91803cf6d8be63cdd59fcb6f (patch)
tree76c04c9c41c829596236c3bed4c4272cda40ebe3
parentAdd notes about avoiding root (diff)
downloadnwatch-c6d77ae5cf3c069a91803cf6d8be63cdd59fcb6f.tar.gz
nwatch-c6d77ae5cf3c069a91803cf6d8be63cdd59fcb6f.zip
Defensive umask
-rwxr-xr-xbin/nwatch3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/nwatch b/bin/nwatch
index 6b176b6..c1b3e5a 100755
--- a/bin/nwatch
+++ b/bin/nwatch
@@ -25,6 +25,9 @@
# License: GPLv2 (same as Nmap itself)
#
+# Defensive umask by default; change at your own risk!
+umask 0077
+
# Some fixed values
self=nwatch
hostlist=${1:?}