From 044dede1e04ce19911ed3ae812610b9c5aa06a32 Mon Sep 17 00:00:00 2001 From: Tim van der Molen Date: Tue, 10 May 2016 20:20:44 +0000 Subject: Fix operator precedence error; OK guenther@ millert@ --- bin/ln/ln.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/ln/ln.c') 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); } -- cgit v1.2.3