diff options
author | mpp <mpp@FreeBSD.org> | 2007-09-14 03:12:19 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 2007-09-14 03:12:19 +0000 |
commit | 8f456a5e2079bea2435edb3f040f3a28bd692252 (patch) | |
tree | b240a3fa5d2e0036d20c056c92706d55a830048b | |
parent | 3b34ee2e635679892107ebde65dc0133ea625686 (diff) | |
download | FreeBSD-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)
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 1 |
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); } |