diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2001-11-29 03:17:12 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2001-11-29 03:17:12 +0000 |
commit | 21f64fb66bae02443cbae522b9e5846c8177a707 (patch) | |
tree | fb251f13ea5d634dbd4643ee1b9f09a3a368898e /lib | |
parent | 068bd1c13533834bfca0cbbce16398bcaad1321f (diff) | |
download | FreeBSD-src-21f64fb66bae02443cbae522b9e5846c8177a707.zip FreeBSD-src-21f64fb66bae02443cbae522b9e5846c8177a707.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/rename.2 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2 index 2ef23f7..b887d08 100644 --- a/lib/libc/sys/rename.2 +++ b/lib/libc/sys/rename.2 @@ -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. |