diff options
author | 2001-08-09 03:33:17 +0000 | |
---|---|---|
committer | 2001-08-09 03:33:17 +0000 | |
commit | 62d5498068bf5bb623dfb9fc443c2b5d56138f35 (patch) | |
tree | afa988262c5467464a1f1bada0c4e317a44db9e5 | |
parent | It seems bogus to me, but if code call dlerror() when an error has (diff) | |
download | wireguard-openbsd-62d5498068bf5bb623dfb9fc443c2b5d56138f35.tar.xz wireguard-openbsd-62d5498068bf5bb623dfb9fc443c2b5d56138f35.zip |
Actually use the statf function pointer which I missed while hand-patching.
Also, don't mention the -h and -n flags for the 2nd usage line since they
are no-ops in that case.
-rw-r--r-- | bin/ln/ln.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 715eede32a6..43aa0a5b40c 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ln.c,v 1.5 2001/08/09 00:03:12 millert Exp $ */ +/* $OpenBSD: ln.c,v 1.6 2001/08/09 03:33:17 millert Exp $ */ /* $NetBSD: ln.c,v 1.10 1995/03/21 09:06:10 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)ln.c 8.2 (Berkeley) 3/31/94"; #else -static const char rcsid[] = "$OpenBSD: ln.c,v 1.5 2001/08/09 00:03:12 millert Exp $"; +static const char rcsid[] = "$OpenBSD: ln.c,v 1.6 2001/08/09 03:33:17 millert Exp $"; #endif #endif /* not lint */ @@ -145,7 +145,7 @@ linkit(target, source, isdir) statf = hflag ? lstat : stat; /* If the source is a directory, append the target's name. */ - if (isdir || (!stat(source, &sb) && S_ISDIR(sb.st_mode))) { + if (isdir || (!statf(source, &sb) && S_ISDIR(sb.st_mode))) { if ((p = strrchr(target, '/')) == NULL) p = target; else @@ -173,7 +173,7 @@ usage() extern char *__progname; (void)fprintf(stderr, - "usage: %s [-fhns] file1 file2\n\tln [-fhns] file ... directory\n", + "usage: %s [-fhns] file1 file2\n\tln [-fs] file ... directory\n", __progname); exit(1); } |