aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_cd9660/mount_cd9660.c
diff options
context:
space:
mode:
authorBrian S. Dean <bsd@FreeBSD.org>2001-01-25 20:05:34 +0000
committerBrian S. Dean <bsd@FreeBSD.org>2001-01-25 20:05:34 +0000
commitf59091e7cd446a777c84889f28716bec6eebce98 (patch)
treec0d8eed9b7de5b96e83132bf0fbe2ce85951e587 /sbin/mount_cd9660/mount_cd9660.c
parent20ee96993b8da102650df326b2bbb21a2bbaffd4 (diff)
downloadsrc-f59091e7cd446a777c84889f28716bec6eebce98.tar.gz
src-f59091e7cd446a777c84889f28716bec6eebce98.zip
Print out the target device when the mount fails.
Notes
Notes: svn path=/head/; revision=71652
Diffstat (limited to 'sbin/mount_cd9660/mount_cd9660.c')
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c3
1 files changed, 2 insertions, 1 deletions
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 <sys/../isofs/cd9660/cd9660_mount.h>
#include <err.h>
+#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -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);
}