summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-10-19 16:43:13 +1300
committerDouglas Bagnall <dbagnall@samba.org>2019-01-08 23:55:32 +0100
commit9da79b54fa4ec31d82b7d1a23568b576140a7e9b (patch)
tree999bc211697574b558e74f7f1b969432b366276a
parent709d2c84cb3b3c7a570b0f915b578bb98e48e3f0 (diff)
downloadsamba-9da79b54fa4ec31d82b7d1a23568b576140a7e9b.tar.gz
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>
-rw-r--r--python/samba/emulate/traffic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/emulate/traffic.py b/python/samba/emulate/traffic.py
index 0414813704d..d87a8c54ab4 100644
--- a/python/samba/emulate/traffic.py
+++ b/python/samba/emulate/traffic.py
@@ -2146,8 +2146,9 @@ def calc_percentile(values, percentile):
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."""
+ # py3 os.mkdir can do this
d = os.path.join(*path)
mask = os.umask(0o077)
os.mkdir(d)