summaryrefslogtreecommitdiffstats
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>2007-09-14 03:12:19 +0000
committermpp <mpp@FreeBSD.org>2007-09-14 03:12:19 +0000
commit8f456a5e2079bea2435edb3f040f3a28bd692252 (patch)
treeb240a3fa5d2e0036d20c056c92706d55a830048b /sbin/quotacheck
parent3b34ee2e635679892107ebde65dc0133ea625686 (diff)
downloadFreeBSD-src-8f456a5e2079bea2435edb3f040f3a28bd692252.zip
FreeBSD-src-8f456a5e2079bea2435edb3f040f3a28bd692252.tar.gz
Flush stdout at the end of the update phase to prevent possible
duplicate output when "quotacheck -a -v" is used. Approved by: re (bmah)
Diffstat (limited to 'sbin/quotacheck')
-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 02ee25d..1956184 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);
}
OpenPOWER on IntegriCloud