##// END OF EJS Templates
util: filter all st_mode with 0777 in checkexec
Patrick Mezard -
r5759:027264e7 default
parent child Browse files
Show More
@@ -843,7 +843,7 b' def checkexec(path):'
843 m = os.stat(fn).st_mode & 0777
843 m = os.stat(fn).st_mode & 0777
844 new_file_has_exec = m & EXECFLAGS
844 new_file_has_exec = m & EXECFLAGS
845 os.chmod(fn, m ^ EXECFLAGS)
845 os.chmod(fn, m ^ EXECFLAGS)
846 exec_flags_cannot_flip = (os.stat(fn).st_mode == m)
846 exec_flags_cannot_flip = ((os.stat(fn).st_mode & 0777) == m)
847 finally:
847 finally:
848 os.unlink(fn)
848 os.unlink(fn)
849 except (IOError, OSError):
849 except (IOError, OSError):
General Comments 0
You need to be logged in to leave comments. Login now