[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] writeactive() not updating mtime?
Joerg Dietrich <joerg@xxxxxxxxxxxx> writes:
> In principle this is already done:
> strcpy( newfile, ".overview.XXXXXX" );
> #ifdef HAVE_MKSTEMP
This does not belong in real code, but in a separate object file.
> So the corruption Stefan Wiens reported must have happened during
>
> if ( rename( newfile, ".overview" ) ) {
rename is atomic, and only operates on file names, so it's quite hard to
believe rename would cause corruption.
--
Matthias Andree
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list