From 8f456a5e2079bea2435edb3f040f3a28bd692252 Mon Sep 17 00:00:00 2001 From: mpp Date: Fri, 14 Sep 2007 03:12:19 +0000 Subject: 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(+) (limited to 'sbin/quotacheck') 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); } -- cgit v1.1