[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating backups in temporary directories
From: |
Stefan Monnier |
Subject: |
Re: creating backups in temporary directories |
Date: |
Fri, 07 Sep 2007 13:57:26 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
>> I quite often want to email diffs of files I don't have write access
>> to, so I visit the file, write it to /tmp, then edit it, save it,
>> and go to /tmp to run diff between the file and its backup.
> That's not what backups are for. Why don't you save under a different
> name? That's what C-x C-w is for.
>> Suggestions:
>> 1) make that the default value - why not write backups in /tmp?
> Because making a "backup" for a file in a place that is regularly
> cleaned out is creating an illusion of security.
Worse yet: creating backup files in /tmp would be a security hole:
some other user seeing you're currently editing /tmp/foo could create
a symlink /tmp/foo~ to some interesting place and then when you save your
file the backup could be placed at that interesting place chosen by
the attacker.
Stefan
- creating backups in temporary directories, Chris Moore, 2007/09/07
- Re: creating backups in temporary directories, David Kastrup, 2007/09/07
- Re: creating backups in temporary directories,
Stefan Monnier <=
- Re: creating backups in temporary directories, Stefan Monnier, 2007/09/07
- Re: creating backups in temporary directories, Richard Stallman, 2007/09/08
- Re: creating backups in temporary directories, Stefan Monnier, 2007/09/09
- Re: creating backups in temporary directories, David Kastrup, 2007/09/09
- Re: creating backups in temporary directories, Andreas Schwab, 2007/09/09
- Re: creating backups in temporary directories, David Kastrup, 2007/09/09
- Re: creating backups in temporary directories, Davis Herring, 2007/09/10