diff options
author | bsd <bsd@FreeBSD.org> | 2001-01-25 20:05:34 +0000 |
---|---|---|
committer | bsd <bsd@FreeBSD.org> | 2001-01-25 20:05:34 +0000 |
commit | 3f4604a14ae24f6cfc3997d17d97cfa8199e4901 (patch) | |
tree | 66f61796c2ba5f920574f490ec51f48ac38f15fe /sbin/mount_cd9660 | |
parent | 73b38f1d13f745feee7dba44a55ce5c53e89224a (diff) | |
download | FreeBSD-src-3f4604a14ae24f6cfc3997d17d97cfa8199e4901.zip FreeBSD-src-3f4604a14ae24f6cfc3997d17d97cfa8199e4901.tar.gz |
Print out the target device when the mount fails.
Diffstat (limited to 'sbin/mount_cd9660')
-rw-r--r-- | sbin/mount_cd9660/mount_cd9660.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c index 665d22f..9face82 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); } |