Displaying 1 result from an estimated 1 matches for "d76b739".
Did you mean:
  d72db739
  
2019 Jan 18
0
[klibc:master] rename, renameat: Use renameat2() system call
...+<?> int renameat2(int, const char *, int, const char *, unsigned int);
 <?> int mknod(const char *, mode_t, dev_t);
 <?> int mknodat(int, const char *, mode_t, dev_t);
 <?> int chmod(const char *, mode_t);
diff --git a/usr/klibc/rename.c b/usr/klibc/rename.c
index 587c26f..d76b739 100644
--- a/usr/klibc/rename.c
+++ b/usr/klibc/rename.c
@@ -5,7 +5,7 @@
 
 int rename(const char *oldpath, const char *newpath)
 {
-	return renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath);
+	return renameat2(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0);
 }
 
 #endif /* __NR_rename */
diff --git a/usr/k...