]> git.pld-linux.org Git - projects/setup.git/commitdiff
fsync/close after loop.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 8 Dec 2011 19:25:04 +0000 (19:25 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 8 Dec 2011 19:25:04 +0000 (19:25 +0000)
Changed files:
    joinpasswd.c -> 1.14

joinpasswd.c

index fea4a310bd1a1f53f9e74439aaaef56a2173615f..566c4b922b347f69a7a9734276da33e204934005 100644 (file)
@@ -332,9 +332,9 @@ int join(const char *old_name, const char *new_name, const char *backup_name)
                        }
                } else if (i < new_sz)
                        i++;
-               fsync(fd);
-               close(fd);
        }
+       fsync(fd);
+       close(fd);
 
 #if 0
        /* user may want to exime this file... */
This page took 0.090885 seconds and 4 git commands to generate.