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

Re: FHS compliance and UNIX sockets



On Thu, Feb 01, 2001 at 08:47:43AM -0600, Steve Greenland wrote:
> On 31-Jan-01, 17:38 (CST), Joey Hess <joey@kitenet.net> wrote: 
> > Tollef Fog Heen wrote:
> > > The next step would probably be to search the sources for /tmp and
> > > replace it with $HOME/tmp wherever possible.
> > 
> > Replace it with getenv("TMPDIR") is much better.
> 
> This turns out to have some interesting consequences. For example, I
> added TMPDIR support to "crontab -e", and it broke for some users,
> because emacs behaves differently when the path of the file being edited
> begins with "/tmp" vs other places. When it's in /tmp, emacs edits in
> place and copies to backup, otherwise it moves the original to backup
> and edits a copy, which broke crontabs check for if the file had been
> modified.

That really sounds like a bug in emacs; that's a subtler form of not
respecting TMPDIR.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/



Reply to: