summaryrefslogtreecommitdiff
path: root/sbin/mount_ados/mount_ados.c
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_ados/mount_ados.c
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_ados/mount_ados.c')
-rw-r--r--sbin/mount_ados/mount_ados.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_ados/mount_ados.c b/sbin/mount_ados/mount_ados.c
index 188fd57a55e..0cc1178e7c3 100644
--- a/sbin/mount_ados/mount_ados.c
+++ b/sbin/mount_ados/mount_ados.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ados.c,v 1.12 2003/07/03 22:41:40 tedu Exp $ */
+/* $OpenBSD: mount_ados.c,v 1.13 2005/04/08 20:09:36 jaredy Exp $ */
/* $NetBSD: mount_ados.c,v 1.5 1996/04/13 01:30:59 jtc Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.12 2003/07/03 22:41:40 tedu Exp $";
+static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.13 2005/04/08 20:09:36 jaredy Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -101,7 +101,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 */