##// END OF EJS Templates
rhg: set group-writable checkisexec file permissions in Python...
Arseniy Alekseyev -
r53423:dd052842 default
parent child Browse files
Show More
@@ -300,6 +300,7 def checkexec(path: bytes) -> bool:
300 os.close(fh)
300 os.close(fh)
301 m = os.stat(fn).st_mode
301 m = os.stat(fn).st_mode
302 if m & EXECFLAGS == 0:
302 if m & EXECFLAGS == 0:
303 m = 0o666 & ~umask
303 os.chmod(fn, m & 0o777 | EXECFLAGS)
304 os.chmod(fn, m & 0o777 | EXECFLAGS)
304 if os.stat(fn).st_mode & EXECFLAGS != 0:
305 if os.stat(fn).st_mode & EXECFLAGS != 0:
305 if checkisexec is not None:
306 if checkisexec is not None:
General Comments 0
You need to be logged in to leave comments. Login now