about summary refs log tree commit diff
path: root/sysdeps/posix/rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/rename.c')
-rw-r--r--sysdeps/posix/rename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/rename.c b/sysdeps/posix/rename.c
index 2dfc8ae694..e326157775 100644
--- a/sysdeps/posix/rename.c
+++ b/sysdeps/posix/rename.c
@@ -30,8 +30,8 @@ rename (const char *old, const char *new)
 	{
 	  __set_errno (save);
 	  /* Race condition, required for 1003.1 conformance.  */
-	  if (__unlink (new) < 0 ||
-	      __link (old, new) < 0)
+	  if (__unlink (new) < 0
+	      || __link (old, new) < 0)
 	    return -1;
 	}
       else