diff --git a/ChangeLog b/ChangeLog index fb8daf563..c782c10d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +20030930 + - (bal) Fix issues in openbsd-compat/realpath.c + 20030925 - (dtucker) [configure.ac openbsd-compat/xcrypt.c] Bug #633: Remove DISABLE_SHADOW for HP-UX, use getspnam instead of getprpwnam. Patch from @@ -1229,4 +1232,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3043 2003/09/26 02:04:34 tim Exp $ +$Id: ChangeLog,v 1.3044 2003/09/30 23:49:06 mouring Exp $ 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); }