summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-01-17 23:19:47 +0000
committerKen Raeburn <raeburn@mit.edu>2003-01-17 23:19:47 +0000
commit0888eeec6d670a19fc26eaddb40a49580c6941b4 (patch)
tree6fba868c7ab7d59a22029a90c6277264a514fa9d
parent61d2b0f60348ece3adbb30090824ec959d3ce79f (diff)
downloadkrb5-0888eeec6d670a19fc26eaddb40a49580c6941b4.tar.gz
krb5-0888eeec6d670a19fc26eaddb40a49580c6941b4.tar.xz
krb5-0888eeec6d670a19fc26eaddb40a49580c6941b4.zip
* prof_file.c (profile_flush_file_data): [_WIN32]: Don't call sync
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15126 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/profile/ChangeLog5
-rw-r--r--src/util/profile/prof_file.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index afb3733820..23595650ec 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-17 Ken Raeburn <raeburn@mit.edu>
+
+ * prof_file.c (profile_flush_file_data) [_WIN32]: Don't call
+ sync.
+
2003-01-13 Ken Raeburn <raeburn@mit.edu>
* prof_int.h (SHARE_TREE_DATA): Define only on Mac.
diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c
index a71c44fe43..90866b9135 100644
--- a/src/util/profile/prof_file.c
+++ b/src/util/profile/prof_file.c
@@ -319,7 +319,9 @@ errcode_t profile_flush_file_data(data)
/* Couldn't make the hard link, so there's going to be a
small window where data->filespec does not refer to
either version. */
+#ifndef _WIN32
sync();
+#endif
if (rename(data->filespec, old_file)) {
retval = errno;
goto errout;