mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-11 13:10:32 +00:00
mmkdir: ensure dir permissions for toplevel directory too (using umask)
Fix a quoting bug on the side.
This commit is contained in:
parent
c2e0dcec3c
commit
ab80765c24
4
mmkdir
4
mmkdir
@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# mmkdir DIRS... - create new maildirs
|
# mmkdir DIRS... - create new maildirs
|
||||||
|
|
||||||
|
umask 077
|
||||||
|
|
||||||
r=0
|
r=0
|
||||||
for dir; do
|
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
|
done
|
||||||
|
|
||||||
exit $r
|
exit $r
|
||||||
|
Loading…
Reference in New Issue
Block a user