emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch about moving file (or directory) to the Recycle Bin on Windows


From: Stefan Monnier
Subject: Re: patch about moving file (or directory) to the Recycle Bin on Windows NT series
Date: Tue, 22 Apr 2008 21:14:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> +      /* On Unix, unlink works without write permission. */
>> +      _chmod (path, 0666);

> Can this somehow leave the file writable without deleting it, if the
> code is interrupted before it gets to undo this _chmod call?  If so,
> we need to guard against that somehow.

Also that makes the file temporarily readable/writable by everybody.
It's probably better to set it to 0600.  Of course, maybe this is
irrelevant because of the way w32 interprets those
Unix-style permissions.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]