nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] extensions on tmp filenames?


From: David Levine
Subject: Re: [Nmh-workers] extensions on tmp filenames?
Date: Sun, 02 Feb 2014 17:43:53 -0500

Lyndon wrote:

> On Feb 2, 2014, at 6:02, David Levine <address@hidden> wrote:
> 
> > Well, that's the way it's documented.  This is when an existing
> > file is in the way of the new name.
> 
> Documented where?  SUSv3 calls out the behaviour explicitly, as
> inherited from the ISO C spec.

Well, the SUSv2 spec says:

    If the link named by the new argument exists, it shall be removed
    and old renamed to new. In this case, a link named new shall
    remain visible to other processes throughout the renaming
    operation and refer either to the file referred to by new or old
    before the operation began.

and that's what Linux still uses for its documentation.

This is pretty much moot now:  we use mkstemps if available,
and if not try link before trying rename.

David



reply via email to

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