diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-22 19:31:05 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-22 19:31:05 +0000 |
commit | 7eb8ba29f0bb90c5986073e4a197d6216773e086 (patch) | |
tree | f051447dc333169202ba645d641027e1799b1802 /sbin/dumpfs | |
parent | 6c17414e4822c72a0538598d05f68aeceed2f9f7 (diff) | |
download | FreeBSD-src-7eb8ba29f0bb90c5986073e4a197d6216773e086.zip FreeBSD-src-7eb8ba29f0bb90c5986073e4a197d6216773e086.tar.gz |
When errno is not set, do not use warn(3).
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r-- | sbin/dumpfs/dumpfs.c | 3 |
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); } |