aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pw/grupd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pw/grupd.c')
-rw-r--r--usr.sbin/pw/grupd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pw/grupd.c b/usr.sbin/pw/grupd.c
index 38d5e5bc956c..5d0df0263e4a 100644
--- a/usr.sbin/pw/grupd.c
+++ b/usr.sbin/pw/grupd.c
@@ -77,6 +77,7 @@ gr_update(struct group * grp, char const * group)
close(tfd);
err(1, "gr_copy()");
}
+ fsync(tfd);
close(tfd);
if (gr_mkdb() == -1) {
gr_fini();