summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/realpath.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2003-10-01 01:49:06 +0200
committerBen Lindstrom <mouring@eviladmin.org>2003-10-01 01:49:06 +0200
commitb210aa2cfa546d8c31f8c725d1de3050c747bd6e (patch)
treef18bdb72a4debd06528ddcfa6b8f541d5251cca5 /openbsd-compat/realpath.c
parent[sshd_config] UsePAM defaults to no. (diff)
downloadopenssh-b210aa2cfa546d8c31f8c725d1de3050c747bd6e.tar.xz
openssh-b210aa2cfa546d8c31f8c725d1de3050c747bd6e.zip
- (bal) Fix issues in openbsd-compat/realpath.c
Diffstat (limited to '')
-rw-r--r--openbsd-compat/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c
index 77da14e7c..922305ffd 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -150,7 +150,7 @@ loop:
serrno = ENAMETOOLONG;
goto err1;
}
- if (needslash == 0)
+ if (needslash)
strlcat(resolved, "/", MAXPATHLEN);
strlcat(resolved, wbuf, MAXPATHLEN);
}