summaryrefslogtreecommitdiff
path: root/sbin/mount_msdos
diff options
context:
space:
mode:
authorJared Yanovich <jaredy@cvs.openbsd.org>2005-04-08 20:09:39 +0000
committerJared Yanovich <jaredy@cvs.openbsd.org>2005-04-08 20:09:39 +0000
commit4aa08f3abdbaffdf78a844c44ade693cf7daea1f (patch)
treea1ea02a53fc7d6f64ba752eab0f4a0f1acc90dad /sbin/mount_msdos
parent6ae197dff1cae3924cfab9868d086c0e749e49de (diff)
Sync with recent realpath(3) changes: on failure, don't use the second
argument "resolved", since it is undefined. ok and help millert, otto
Diffstat (limited to 'sbin/mount_msdos')
-rw-r--r--sbin/mount_msdos/mount_msdos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c
index 29e18c26232..73eacc6e5bf 100644
--- a/sbin/mount_msdos/mount_msdos.c
+++ b/sbin/mount_msdos/mount_msdos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_msdos.c,v 1.18 2003/07/03 22:41:40 tedu Exp $ */
+/* $OpenBSD: mount_msdos.c,v 1.19 2005/04/08 20:09:37 jaredy Exp $ */
/* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.18 2003/07/03 22:41:40 tedu Exp $";
+static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.19 2005/04/08 20:09:37 jaredy Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -118,7 +118,7 @@ main(int argc, char **argv)
dev = argv[optind];
if (realpath(argv[optind + 1], dir) == NULL)
- err(1, "realpath %s", dir);
+ err(1, "realpath %s", argv[optind + 1]);
args.fspec = dev;
args.export_info.ex_root = -2; /* unchecked anyway on DOS fs */