1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

traffic: fix mk_masked_dir doc and comments

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2018-10-19 16:43:13 +13:00 committed by Douglas Bagnall
parent 709d2c84cb
commit 9da79b54fa

View File

@ -2146,8 +2146,9 @@ def calc_percentile(values, percentile):
def mk_masked_dir(*path): def mk_masked_dir(*path):
"""In a testenv we end up with 0777 diectories that look an alarming """In a testenv we end up with 0777 directories that look an alarming
green colour with ls. Use umask to avoid that.""" green colour with ls. Use umask to avoid that."""
# py3 os.mkdir can do this
d = os.path.join(*path) d = os.path.join(*path)
mask = os.umask(0o077) mask = os.umask(0o077)
os.mkdir(d) os.mkdir(d)