file permission changed for *.i and *.d
Thomas Arendsen Hein
thomas at intevation.de
Tue Nov 8 22:25:56 UTC 2005
* Benoit Boissinot <bboissin at gmail.com> [20051108 22:14]:
> On 11/8/05, Alexis S. L. Carvalho <alexis at cecm.usp.br> wrote:
> > To break a hard link (created during the clone of a local repository),
> > Mercurial uses a tempfile that is created with permissions 0600:
>
> please try the attached patch
> + st = os.lstat(f)
> + os.chmod(temp, st.st_mode)
> rename(temp, f)
Uhm, I don't like files in public /tmp to be readable by anyone.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list