diff options
Diffstat (limited to 'sysdeps/posix/rename.c')
-rw-r--r-- | sysdeps/posix/rename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/rename.c b/sysdeps/posix/rename.c index c318081bac..b8d31f900c 100644 --- a/sysdeps/posix/rename.c +++ b/sysdeps/posix/rename.c @@ -31,7 +31,7 @@ rename (old, new) { if (errno == EEXIST) { - errno = save; + __set_errno (save); /* Race condition, required for 1003.1 conformance. */ if (__unlink (new) < 0 || __link (old, new) < 0) |