summaryrefslogtreecommitdiff
path: root/bin/ksh/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/path.c')
-rw-r--r--bin/ksh/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/path.c b/bin/ksh/path.c
index 5da57a3f829..d046f00b11d 100644
--- a/bin/ksh/path.c
+++ b/bin/ksh/path.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: path.c,v 1.22 2018/01/06 16:28:58 millert Exp $ */
+/* $OpenBSD: path.c,v 1.23 2019/06/28 13:34:59 deraadt Exp $ */
#include <sys/stat.h>
@@ -248,7 +248,7 @@ do_phys_path(XString *xsp, char *xp, const char *path)
*xp = '\0';
llen = readlink(Xstring(*xsp, xp), lbuf, sizeof(lbuf) - 1);
- if (llen < 0) {
+ if (llen == -1) {
/* EINVAL means it wasn't a symlink... */
if (errno != EINVAL)
return NULL;