# HG changeset patch # User Benoit Boissinot # Date 1271188499 -7200 # Node ID 2d61b612a09df0263ca00ad08cbf35779d7d5eee # Parent 9e4d120e3c32d5d24dd6fa078ff986b7ff74bb1b checkexec: use an explicit prefix for the temporary file diff -r 9e4d120e3c32 -r 2d61b612a09d mercurial/util.py --- a/mercurial/util.py Mon Apr 12 21:19:53 2010 +0200 +++ b/mercurial/util.py Tue Apr 13 21:54:59 2010 +0200 @@ -664,7 +664,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