From 5537074ff29eb8dc35a46f8fbf2a314e5ebc8ab3 Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Tue, 12 Sep 2023 13:48:37 -0700 Subject: [PATCH] Address review --- src/freenas/usr/bin/truenas-developer-enable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freenas/usr/bin/truenas-developer-enable.py b/src/freenas/usr/bin/truenas-developer-enable.py index b444d48df43bf..1cb55e0b05987 100755 --- a/src/freenas/usr/bin/truenas-developer-enable.py +++ b/src/freenas/usr/bin/truenas-developer-enable.py @@ -39,7 +39,7 @@ def chmod_files(): if do_chmod: print(f'{entry.path}: setting execute on file.') - os.chmod(entry.path, 0o755) + os.chmod(entry.path, entry.stat().st_mode | EXECUTE_BITS) if __name__ == '__main__':