date and time created 91/03/06 18:09:53 by bostic
[unix-history] / usr / src / lib / libc / sys / rename.2
index 4abce4e..ecf9d75 100644 (file)
@@ -1,8 +1,9 @@
-.\" Copyright (c) 1983 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1983 The Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)rename.2    6.3 (Berkeley) %G%
+.\" %sccs.include.redist.man%
+.\"
+.\"    @(#)rename.2    6.6 (Berkeley) %G%
 .\"
 .TH RENAME 2 ""
 .UC 5
 .\"
 .TH RENAME 2 ""
 .UC 5
@@ -36,6 +37,12 @@ guarantees that an instance of
 .I to
 will always exist, even if the system should crash in
 the middle of the operation.
 .I to
 will always exist, even if the system should crash in
 the middle of the operation.
+.PP
+If the final component of
+.I from
+is a symbolic link,
+the symbolic link is renamed,
+not the file or directory to which it points.
 .SH CAVEAT
 The system can deadlock if a loop in the file system graph is present.
 This loop takes the form of an entry in directory \*(lqa\*(rq,
 .SH CAVEAT
 The system can deadlock if a loop in the file system graph is present.
 This loop takes the form of an entry in directory \*(lqa\*(rq,