diff options
author | 2016-05-10 20:20:43 +0000 | |
---|---|---|
committer | 2016-05-10 20:20:43 +0000 | |
commit | a2e872a0d4344ff99409a14b7619782cc1b1ac56 (patch) | |
tree | c734f1718b27ac309bdf679c0c665a6b41c5f28a | |
parent | SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookie (diff) | |
download | wireguard-openbsd-a2e872a0d4344ff99409a14b7619782cc1b1ac56.tar.xz wireguard-openbsd-a2e872a0d4344ff99409a14b7619782cc1b1ac56.zip |
Fix operator precedence error; OK guenther@ millert@
-rw-r--r-- | bin/ln/ln.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 329b3d4147c..ae0d34ed383 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ln.c,v 1.23 2015/10/10 22:36:46 doug Exp $ */ +/* $OpenBSD: ln.c,v 1.24 2016/05/10 20:20:43 tim Exp $ */ /* $NetBSD: ln.c,v 1.10 1995/03/21 09:06:10 cgd Exp $ */ /* @@ -179,9 +179,9 @@ linkit(char *target, char *source, int isdir) * Attempt the link. */ if ((fflag && unlink(source) < 0 && errno != ENOENT) || - sflag ? symlink(target, source) : + (sflag ? symlink(target, source) : linkat(AT_FDCWD, target, AT_FDCWD, source, - Pflag ? 0 : AT_SYMLINK_FOLLOW)) { + Pflag ? 0 : AT_SYMLINK_FOLLOW))) { warn("%s", source); return (1); } |