15 lines
410 B
Plaintext
15 lines
410 B
Plaintext
$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.
|