in reply to [OT] rename(2) -- renaming file to itself produces no error.
The specification that if old and new refer to the same file is intended to guarantee that:Seems a little lame to me (the given rationale, not necessarily the behaviour).rename("x", "x");
does not remove the file.
All of the special handling for when the new file already exists is a POSIX extension of the ISO C standard.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [OT] rename(2) -- renaming file to itself produces no error.
by Coruscate (Sexton) on Jan 08, 2004 at 05:30 UTC |