Commit 0a24f47f authored by Paul Eggert's avatar Paul Eggert
Browse files

Port recent rename changes to Ubuntu 14.04

* src/sysdep.c (renameat_noreplace) [!RENAME_NOREPLACE]:
Don’t use syscall.  Problem reported by Tino Calancha (Bug#27946#10).
parent 055e2a19
......@@ -2691,7 +2691,7 @@ set_file_times (int fd, const char *filename,
renameat_noreplace (int srcfd, char const *src, int dstfd, char const *dst)
#ifdef SYS_renameat2
#if defined SYS_renameat2 && defined RENAME_NOREPLACE
return syscall (SYS_renameat2, srcfd, src, dstfd, dst, RENAME_NOREPLACE);
errno = ENOSYS;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment