blob: ef12de0051bfa4a0e7e85e35e21c8762df1db379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-aa,v 1.1 2005/11/01 18:59:34 tv Exp $
--- src/rename_unlink.c.orig 2003-04-08 12:16:56.000000000 -0400
+++ src/rename_unlink.c
@@ -45,7 +45,9 @@ int rename_unlink(const char *path) {
if (rename(path, new_name) == -1)
return -1;
+#ifndef __INTERIX
sync();
+#endif
if (lstat(new_name, &statbuf) == -1) {
/* Bad mojo, we just renamed to new_name and now the path is invalid.
|