summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/nfs/rmtab.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/support/nfs/rmtab.c b/support/nfs/rmtab.c
index da40e48..b7be6ba 100644
--- a/support/nfs/rmtab.c
+++ b/support/nfs/rmtab.c
@@ -114,8 +114,14 @@ endrmtabent(void)
void
fendrmtabent(FILE *fp)
{
- if (fp)
+ if (fp) {
+ /* If it was written to, we really want
+ * to flush to disk before returning
+ */
+ fflush(fp);
+ fdatasync(fileno(fp));
fclose(fp);
+ }
}
void