summaryrefslogtreecommitdiff
path: root/sbin/mount_xfs/mount_xfs.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_xfs/mount_xfs.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_xfs/mount_xfs.c')
-rw-r--r--sbin/mount_xfs/mount_xfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_xfs/mount_xfs.c b/sbin/mount_xfs/mount_xfs.c
index f1c17a6a1e0..fba1b8481e0 100644
--- a/sbin/mount_xfs/mount_xfs.c
+++ b/sbin/mount_xfs/mount_xfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_xfs.c,v 1.7 2003/07/03 22:41:40 tedu Exp $ */
+/* $OpenBSD: mount_xfs.c,v 1.8 2005/04/08 20:09:38 jaredy Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
@@ -92,7 +92,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_XFS, path, mntflags, argv[0])) {
if (errno == EOPNOTSUPP)