aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmmkdir4
1 files changed, 3 insertions, 1 deletions
diff --git a/mmkdir b/mmkdir
index 26d01ff..28feee6 100755
--- a/mmkdir
+++ b/mmkdir
@@ -1,9 +1,11 @@
#!/bin/sh
# mmkdir DIRS... - create new maildirs
+umask 077
+
r=0
for dir; do
- mkdir -p -m 0700 $dir/cur $dir/new $dir/tmp || r=1
+ mkdir -p "$dir"/cur "$dir"/new "$dir"/tmp || r=1
done
exit $r