link(2) to rename files in sftp
Markus Friedl
markus at openbsd.org
Tue Apr 6 15:43:31 EST 2004
On Mon, Apr 05, 2004 at 09:45:05PM -0400, Carson Gaspar wrote:
> --On Tuesday, April 06, 2004 09:24:31 +1000 Darren Tucker
> <dtucker at zip.com.au> wrote:
>
> >According to the CVS log, the link shuffle is used to "fix races in
> >rename/symlink" (revs 1.46 and 1.44).
>
> If rename() has a race condition, the OS is broken. Plain and simple.
not rename, but stat+rename.
More information about the openssh-unix-dev
mailing list