summaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r--sbin/dumpfs/dumpfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index dae0f53..3ac2ccf 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -244,7 +244,8 @@ dumpfs(const char *name)
err: libufs_printerror(&disk);
ufs_disk_close(&disk);
- warn("%s", name);
+ if (errno)
+ warn("%s", name);
return (1);
}
OpenPOWER on IntegriCloud