##// END OF EJS Templates
atomictempfile: avoid chmod weirdness on Linux vfat
Matt Mackall -
r5740:9046a4f6 default
parent child Browse files
Show More
@@ -1313,7 +1313,7 b' def mktempcopy(name, emptyok=False):'
1313 # what we want. If the original file already exists, just copy
1313 # what we want. If the original file already exists, just copy
1314 # its mode. Otherwise, manually obey umask.
1314 # its mode. Otherwise, manually obey umask.
1315 try:
1315 try:
1316 st_mode = os.lstat(name).st_mode
1316 st_mode = os.lstat(name).st_mode & 0777
1317 except OSError, inst:
1317 except OSError, inst:
1318 if inst.errno != errno.ENOENT:
1318 if inst.errno != errno.ENOENT:
1319 raise
1319 raise
General Comments 0
You need to be logged in to leave comments. Login now