summaryrefslogtreecommitdiff
path: root/sbin/mount_kernfs
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_kernfs
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_kernfs')
-rw-r--r--sbin/mount_kernfs/mount_kernfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_kernfs/mount_kernfs.c b/sbin/mount_kernfs/mount_kernfs.c
index 723349c461c..9a8bec1eb69 100644
--- a/sbin/mount_kernfs/mount_kernfs.c
+++ b/sbin/mount_kernfs/mount_kernfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_kernfs.c,v 1.11 2003/07/03 22:41:40 tedu Exp $ */
+/* $OpenBSD: mount_kernfs.c,v 1.12 2005/04/08 20:09:37 jaredy Exp $ */
/* $NetBSD: mount_kernfs.c,v 1.8 1996/04/13 05:35:39 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)mount_kernfs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_kernfs.c,v 1.11 2003/07/03 22:41:40 tedu Exp $";
+static char rcsid[] = "$OpenBSD: mount_kernfs.c,v 1.12 2005/04/08 20:09:37 jaredy Exp $";
#endif
#endif /* not lint */
@@ -90,7 +90,7 @@ main(int argc, char *argv[])
usage();
if (realpath(argv[1], path) == NULL)
- err(1, "realpath %s", path);
+ err(1, "realpath %s", argv[1]);
if (mount(MOUNT_KERNFS, path, mntflags, NULL)) {
if (errno == EOPNOTSUPP)