summaryrefslogtreecommitdiff
path: root/sbin/mount_ffs
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_ffs
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_ffs')
-rw-r--r--sbin/mount_ffs/mount_ffs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_ffs/mount_ffs.c b/sbin/mount_ffs/mount_ffs.c
index a40fb43ad47..72ddfe5b210 100644
--- a/sbin/mount_ffs/mount_ffs.c
+++ b/sbin/mount_ffs/mount_ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ffs.c,v 1.17 2003/07/03 22:41:40 tedu Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.18 2005/04/08 20:09:37 jaredy Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.17 2003/07/03 22:41:40 tedu Exp $";
+static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.18 2005/04/08 20:09:37 jaredy Exp $";
#endif
#endif /* not lint */
@@ -95,7 +95,7 @@ main(int argc, char *argv[])
args.fspec = argv[0]; /* The name of the device file. */
if (realpath(argv[1], fs_name) == NULL) /* The mount point. */
- err(1, "realpath %s", fs_name);
+ err(1, "realpath %s", argv[1]);
#define DEFAULT_ROOTUID -2
args.export_info.ex_root = DEFAULT_ROOTUID;