aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pritchard <mpp@FreeBSD.org>2007-09-14 03:12:19 +0000
committerMike Pritchard <mpp@FreeBSD.org>2007-09-14 03:12:19 +0000
commit4e41e905d8a8311fa9a5968de33869a0c7865705 (patch)
treeb240a3fa5d2e0036d20c056c92706d55a830048b
parent1f0ea148f28db15671bcf3e998033248b4c964f2 (diff)
downloadsrc-4e41e905d8a8311fa9a5968de33869a0c7865705.tar.gz
src-4e41e905d8a8311fa9a5968de33869a0c7865705.zip
Flush stdout at the end of the update phase to prevent possible
duplicate output when "quotacheck -a -v" is used. Approved by: re (bmah)
Notes
Notes: svn path=/head/; revision=172168
-rw-r--r--sbin/quotacheck/quotacheck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 02ee25de5af7..1956184f91cf 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -405,6 +405,7 @@ chkquota(fsname, mntpt, qnp)
if (qnp->flags & HASGRP)
errs += update(mntpt, qnp->grpqfname, GRPQUOTA);
close(fi);
+ (void)fflush(stdout);
return (errs);
}