X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcfileutil.c;h=e824a2f12b886d51bc39c43dc573179b6a14d8b0;hp=c57cc42beb0457ea33b07c1f317a80457e0fb010;hb=d0bd38935f38aac315930baaa64993e00056ddb2;hpb=5eceb9d934bb2a6489009f46c99f2d9f886cf2d5 diff --git a/lib/silcutil/silcfileutil.c b/lib/silcutil/silcfileutil.c index c57cc42b..e824a2f1 100644 --- a/lib/silcutil/silcfileutil.c +++ b/lib/silcutil/silcfileutil.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2005 Pekka Riikonen + Copyright (C) 1997 - 2007 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -82,7 +82,9 @@ int silc_file_writefile(const char *filename, const char *buffer, return -1; } +#ifdef SILC_UNIX fsync(fd); +#endif /* SILC_UNIX */ return silc_file_close(fd); } @@ -112,7 +114,9 @@ int silc_file_writefile_mode(const char *filename, const char *buffer, return -1; } +#ifdef SILC_UNIX fsync(fd); +#endif /* SILC_UNIX */ return silc_file_close(fd); }