diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-04-08 20:09:39 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-04-08 20:09:39 +0000 |
commit | 4aa08f3abdbaffdf78a844c44ade693cf7daea1f (patch) | |
tree | a1ea02a53fc7d6f64ba752eab0f4a0f1acc90dad /bin | |
parent | 6ae197dff1cae3924cfab9868d086c0e749e49de (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 'bin')
-rw-r--r-- | bin/mv/mv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c index b7893b144d1..37194d8f9a4 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mv.c,v 1.30 2004/12/13 20:22:52 otto Exp $ */ +/* $OpenBSD: mv.c,v 1.31 2005/04/08 20:09:36 jaredy Exp $ */ /* $NetBSD: mv.c,v 1.9 1995/03/21 09:06:52 cgd Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: mv.c,v 1.30 2004/12/13 20:22:52 otto Exp $"; +static char rcsid[] = "$OpenBSD: mv.c,v 1.31 2005/04/08 20:09:36 jaredy Exp $"; #endif #endif /* not lint */ @@ -235,7 +235,7 @@ do_move(char *from, char *to) char path[MAXPATHLEN]; if (realpath(from, path) == NULL) { - warnx("cannot resolve %s: %s", from, path); + warnx("cannot resolve %s", from); return (1); } if (!statfs(path, &sfs) && !strcmp(path, sfs.f_mntonname)) { |