From 4aa08f3abdbaffdf78a844c44ade693cf7daea1f Mon Sep 17 00:00:00 2001 From: Jared Yanovich Date: Fri, 8 Apr 2005 20:09:39 +0000 Subject: Sync with recent realpath(3) changes: on failure, don't use the second argument "resolved", since it is undefined. ok and help millert, otto --- sbin/mount_union/mount_union.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/mount_union') diff --git a/sbin/mount_union/mount_union.c b/sbin/mount_union/mount_union.c index 61de03e584c..a4bff6f6f0c 100644 --- a/sbin/mount_union/mount_union.c +++ b/sbin/mount_union/mount_union.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_union.c,v 1.10 2003/07/03 22:41:40 tedu Exp $ */ +/* $OpenBSD: mount_union.c,v 1.11 2005/04/08 20:09:38 jaredy Exp $ */ /* $NetBSD: mount_union.c,v 1.3 1996/04/13 01:32:11 jtc Exp $ */ /* @@ -43,7 +43,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)mount_union.c 8.5 (Berkeley) 3/27/94"; #else -static char rcsid[] = "$OpenBSD: mount_union.c,v 1.10 2003/07/03 22:41:40 tedu Exp $"; +static char rcsid[] = "$OpenBSD: mount_union.c,v 1.11 2005/04/08 20:09:38 jaredy Exp $"; #endif #endif /* not lint */ @@ -103,7 +103,7 @@ main(int argc, char *argv[]) usage(); if (realpath(argv[0], target) == 0) - err(1, "realpath %s", target); + err(1, "realpath %s", argv[0]); if (subdir(target, argv[1]) || subdir(argv[1], target)) errx(1, "%s (%s) and %s are not distinct paths", -- cgit v1.2.3