Fix the call to fsync.
This commit is contained in:
2
debian/patches/401_cppw_src.dpatch
vendored
2
debian/patches/401_cppw_src.dpatch
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user