summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-12 11:17:27 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-12 11:18:52 +0200
commitcb76acad993760b2467667e1aa42d164db590ad8 (patch)
treec8c8112ca76c7d22a9d969709228c3e386d951c3 /python
parenta457c9d21f94db233e90268703f8bc97a1ab64ec (diff)
downloadvyos-1x-cb76acad993760b2467667e1aa42d164db590ad8.tar.gz
vyos-1x-cb76acad993760b2467667e1aa42d164db590ad8.zip
vyos.util: rename chmod_x() -> chmod_755()
Diffstat (limited to 'python')
-rw-r--r--python/vyos/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index 9ca229136..7308dd9b5 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -24,7 +24,7 @@ from subprocess import DEVNULL
def debug(flag):
"""
- Check is a debug flag was set by the user.
+ Check is a debug flag was set by the user.
a flag can be set by touching the file /tmp/vyos.flag.debug
with flag being the flag name, the current flags are:
- developer: the code will drop into PBD on un-handled exception
@@ -205,8 +205,8 @@ def chmod_750(path):
os.chmod(path, bitmask)
-def chmod_x(path):
- """ make file executable """
+def chmod_755(path):
+ """ make file executable by all """
from stat import S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IXGRP, S_IROTH, S_IXOTH
if os.path.exists(path):