+/* OPENBSD ORIGINAL: lib/libc/stdlib/realpath.c */
+
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
serrno = ENAMETOOLONG;
goto err1;
}
- if (needslash == 0)
+ if (needslash)
strlcat(resolved, "/", MAXPATHLEN);
strlcat(resolved, wbuf, MAXPATHLEN);
}