When errno is not set, do not use warn(3).
This commit is contained in:
parent
6c17414e48
commit
7eb8ba29f0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user