rename() can't guarantee "to" always exists if it didn't exist in the first
place -- for example, rename("existing", "newfile"); on a read-only file system. Reviewed by: green MFC after: 3 days
This commit is contained in:
parent
068bd1c135
commit
21f64fb66b
@ -61,7 +61,9 @@ must be of the same type (that is, both directories or both
|
||||
non-directories), and must reside on the same file system.
|
||||
.Pp
|
||||
.Fn Rename
|
||||
guarantees that an instance of
|
||||
guarantees that if
|
||||
.Fa to
|
||||
already exists, an instance of
|
||||
.Fa to
|
||||
will always exist, even if the system should crash in
|
||||
the middle of the operation.
|
||||
|
Loading…
Reference in New Issue
Block a user