diff --git a/sbin/fsck/progress.c b/sbin/fsck/progress.c index 45ebd07e49b5..da19d79aaf66 100644 --- a/sbin/fsck/progress.c +++ b/sbin/fsck/progress.c @@ -1,4 +1,4 @@ -/* $NetBSD: progress.c,v 1.1 2005/01/13 15:22:35 christos Exp $ */ +/* $NetBSD: progress.c,v 1.2 2005/05/10 00:39:04 atatat Exp $ */ /*- * Copyright (c) 1997-2004 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #ifndef SMALL #include -__RCSID("$NetBSD: progress.c,v 1.1 2005/01/13 15:22:35 christos Exp $"); +__RCSID("$NetBSD: progress.c,v 1.2 2005/05/10 00:39:04 atatat Exp $"); /* * File system independent fsck progress bar routines. @@ -138,6 +138,9 @@ progress_done(void) char buf[256]; int len; + if (progress_onoff == 0) + return; + len = MIN(sizeof(buf) - 2, ttywidth); memset(buf, ' ', len); buf[len] = '\r';