summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAlexander von Gernler <grunk@cvs.openbsd.org>2007-02-17 15:57:15 +0000
committerAlexander von Gernler <grunk@cvs.openbsd.org>2007-02-17 15:57:15 +0000
commit97a09fc22d1f38020dd425650c9835d085fd8039 (patch)
tree7ce965f9cc8eb84490d2ff3f070a1564fe9fc1fc /sbin
parenta36ff3f5cc37eef67f4666be5221f7c3b394d606 (diff)
silence fsck_{e2fs,ffs} when being put to work on non-existing filenames
idea from and ok pedro@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck/fsutil.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/fsck/fsutil.c b/sbin/fsck/fsutil.c
index 6c25aa5aff5..38104b40fc1 100644
--- a/sbin/fsck/fsutil.c
+++ b/sbin/fsck/fsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsutil.c,v 1.15 2006/05/28 15:43:41 thib Exp $ */
+/* $OpenBSD: fsutil.c,v 1.16 2007/02/17 15:57:14 grunk Exp $ */
/* $NetBSD: fsutil.c,v 1.2 1996/10/03 20:06:31 christos Exp $ */
/*
@@ -30,7 +30,7 @@
* SUCH DAMAGE.
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: fsutil.c,v 1.15 2006/05/28 15:43:41 thib Exp $";
+static const char rcsid[] = "$OpenBSD: fsutil.c,v 1.16 2007/02/17 15:57:14 grunk Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -192,11 +192,9 @@ blockcheck(char *origname)
}
newname = origname;
retry:
- if (stat(newname, &stblock) < 0) {
- xperror(newname);
- printf("Can't stat %s\n", newname);
+ if (stat(newname, &stblock) < 0)
return (origname);
- }
+
if (S_ISBLK(stblock.st_mode)) {
if (stslash.st_dev == stblock.st_rdev)
hot++;