Fix the call to fsync.

This commit is contained in:
nekral-guest
2009-03-22 12:08:43 +00:00
parent d56e6d08bc
commit 5ef093d38e

View File

@@ -86,7 +86,7 @@ Index: shadow-4.1.0/src/cppw.c
+ unlink(backup);
+ return -1;
+ }
+ if ( (fsync (bkfp) != 0)
+ if ( (fsync (fileno (bkfp)) != 0)
+ || (fclose(bkfp) != 0)) {
+ unlink(backup);
+ return -1;