From 84a3d76675387c042e3da23184439f3b6fa02580 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 4 Sep 2016 04:10:09 +1200 Subject: [PATCH] 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 --- man2/rename.2 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/man2/rename.2 b/man2/rename.2 index f457dabd2..281a6cd6d 100644 --- a/man2/rename.2 +++ b/man2/rename.2 @@ -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