From cb76acad993760b2467667e1aa42d164db590ad8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 12 Apr 2020 11:17:27 +0200 Subject: vyos.util: rename chmod_x() -> chmod_755() --- python/vyos/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') 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): -- cgit v1.2.3