From f59091e7cd446a777c84889f28716bec6eebce98 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Thu, 25 Jan 2001 20:05:34 +0000 Subject: Print out the target device when the mount fails. --- sbin/mount_cd9660/mount_cd9660.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/mount_cd9660') diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c index 665d22f64787..9face8293afe 100644 --- a/sbin/mount_cd9660/mount_cd9660.c +++ b/sbin/mount_cd9660/mount_cd9660.c @@ -59,6 +59,7 @@ static const char rcsid[] = #include #include +#include #include #include #include @@ -176,7 +177,7 @@ main(int argc, char **argv) errx(1, "cd9660 filesystem is not available"); if (mount(vfc.vfc_name, mntpath, mntflags, &args) < 0) - err(1, NULL); + err(1, "%s", args.fspec); exit(0); } -- cgit v1.2.3