##// END OF EJS Templates
checkexec: use an explicit prefix for the temporary file
Benoit Boissinot -
r10896:2d61b612 stable
parent child Browse files
Show More
@@ -664,7 +664,7 b' def checkexec(path):'
664
664
665 try:
665 try:
666 EXECFLAGS = stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
666 EXECFLAGS = stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
667 fh, fn = tempfile.mkstemp("", "", path)
667 fh, fn = tempfile.mkstemp(dir=path, prefix='hg-checkexec-')
668 try:
668 try:
669 os.close(fh)
669 os.close(fh)
670 m = os.stat(fn).st_mode & 0777
670 m = os.stat(fn).st_mode & 0777
General Comments 0
You need to be logged in to leave comments. Login now