Always print out the target device when the mount fails, not just on
ENOENT.
This commit is contained in:
parent
34f9ca0908
commit
20ee96993b
@ -137,11 +137,8 @@ mount_ufs(argc, argv)
|
|||||||
warnx("%s on %s: incorrect super block",
|
warnx("%s on %s: incorrect super block",
|
||||||
args.fspec, fs_name);
|
args.fspec, fs_name);
|
||||||
break;
|
break;
|
||||||
case ENOENT:
|
|
||||||
warn("%s", args.fspec);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
warn(NULL);
|
warn("%s", args.fspec);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return (1);
|
return (1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user