Currently only reposync, sync, pxegen and templar call utils.mkdir without
providing an explicit mode. Since all the directories created by these actions
should be mode 0755 by default, not world-writable (!), this change shouldn't
break anything now, and should be safer going forward.
---
cobbler/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cobbler/utils.py b/cobbler/utils.py
index 4dedbf8..87a8e4a 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -1142,7 +1142,7 @@ def rmtree(path,logger=None):
raise CX(_("Error deleting %s") % path)
return True
-def mkdir(path,mode=0777,logger=None):
+def mkdir(path,mode=0755,logger=None):
try:
if logger is not None:
logger.info("mkdir: %s" % path)
--
1.7.0.2
Show replies by date