From 4e41e905d8a8311fa9a5968de33869a0c7865705 Mon Sep 17 00:00:00 2001 From: Mike Pritchard 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 02ee25de5af..1956184f91c 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); }