When errno is not set, do not use warn(3).

This commit is contained in:
Juli Mallett 2002-10-22 19:31:05 +00:00
parent 3fb61032c9
commit b9125e9666

View File

@ -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);
}