scp: Problem when source and destination are identical
Gert Doering
gert at greenie.muc.de
Fri May 25 23:02:08 EST 2001
Hi,
On Fri, May 25, 2001 at 12:13:42PM +0200, Markus Friedl wrote:
> > Which is why everyone else agreed that a switch to change between "overwrite
> > in place" and "do atomic replace" is a good idea.
>
> no, this is why "do atomic replace" does not work.
>
> "overwrite in place" works fine, even if the use cannot create a new
> file because of the directory permissions.
>
> "overwrite in place" works fine, even if the filesystem is almost full.
>
> image copying a 100MB file with "do atomic replace" if you have 50MB of
> free space.
You don't seem to be reading what others write.
There are situations where "atomic replace" doesn't work - and there are
other situations where "overwrite in place" messes up applications trying
to read the file in just that moment.
The Unix way is "give 'em a choice" - which is exactly what the switch
is good for.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert at greenie.muc.de
fax: +49-89-35655025 gert.doering at physik.tu-muenchen.de
More information about the openssh-unix-dev
mailing list