From 8f456a5e2079bea2435edb3f040f3a28bd692252 Mon Sep 17 00:00:00 2001 From: mpp Date: Fri, 14 Sep 2007 03:12:19 +0000 Subject: [PATCH] Flush stdout at the end of the update phase to prevent possible duplicate output when "quotacheck -a -v" is used. Approved by: re (bmah) --- sbin/quotacheck/quotacheck.c | 1 + 1 file changed, 1 insertion(+) 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); }