mirror of https://github.com/mkerrisk/man-pages
rename.2: Relocate some text text
Relocate text noting that there may be a window when 'oldpath' and 'newpath' refer to the same file. Logically, this text appears to belong near the text noting that an existing 'newpath' will be atomically replaced. (In ancient versions of the page, these two pieces of text were closer together.) Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ae01f2b58b
commit
84a3d76675
|
@ -89,6 +89,13 @@ no point at which another process attempting to access
|
|||
.I newpath
|
||||
will find it missing.
|
||||
|
||||
However, when overwriting there will probably be a window in which
|
||||
both
|
||||
.I oldpath
|
||||
and
|
||||
.I newpath
|
||||
refer to the file being renamed.
|
||||
|
||||
If
|
||||
.I oldpath
|
||||
and
|
||||
|
@ -111,13 +118,6 @@ In this case,
|
|||
.I newpath
|
||||
must either not exist, or it must specify an empty directory.
|
||||
|
||||
However, when overwriting there will probably be a window in which
|
||||
both
|
||||
.I oldpath
|
||||
and
|
||||
.I newpath
|
||||
refer to the file being renamed.
|
||||
|
||||
If
|
||||
.I oldpath
|
||||
refers to a symbolic link, the link is renamed; if
|
||||
|
|
Loading…
Reference in New Issue