changeset 10898:5589110e9170

merge with stable
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 13 Apr 2010 22:10:24 +0200
parents adb6a291bbdb (current diff) 2d61b612a09d (diff)
children 90112473b8ca
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Tue Apr 13 22:06:17 2010 +0200
+++ b/mercurial/util.py	Tue Apr 13 22:10:24 2010 +0200
@@ -671,7 +671,7 @@
 
     try:
         EXECFLAGS = stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH
-        fh, fn = tempfile.mkstemp("", "", path)
+        fh, fn = tempfile.mkstemp(dir=path, prefix='hg-checkexec-')
         try:
             os.close(fh)
             m = os.stat(fn).st_mode & 0777