aboutsummaryrefslogtreecommitdiff
path: root/mmkdir
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-12-18 18:16:04 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-12-18 18:16:04 +0100
commitab80765c2424f2445e2ba1b0740f266cbe218850 (patch)
tree77550b2296ef280c9f81b369a77c7750230430fa /mmkdir
parentc2e0dcec3c1df0775e169046d61689abb975350a (diff)
downloadmblaze-ab80765c2424f2445e2ba1b0740f266cbe218850.tar.gz
mmkdir: ensure dir permissions for toplevel directory too (using umask)
Fix a quoting bug on the side.
Diffstat (limited to 'mmkdir')
-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