diff options
Diffstat (limited to 'openbsd-compat/realpath.c')
-rw-r--r-- | openbsd-compat/realpath.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c index 77da14e7c..218fbecb2 100644 --- a/openbsd-compat/realpath.c +++ b/openbsd-compat/realpath.c | |||
@@ -1,3 +1,5 @@ | |||
1 | /* OPENBSD ORIGINAL: lib/libc/stdlib/realpath.c */ | ||
2 | |||
1 | /* | 3 | /* |
2 | * Copyright (c) 1994 | 4 | * Copyright (c) 1994 |
3 | * The Regents of the University of California. All rights reserved. | 5 | * The Regents of the University of California. All rights reserved. |
@@ -150,7 +152,7 @@ loop: | |||
150 | serrno = ENAMETOOLONG; | 152 | serrno = ENAMETOOLONG; |
151 | goto err1; | 153 | goto err1; |
152 | } | 154 | } |
153 | if (needslash == 0) | 155 | if (needslash) |
154 | strlcat(resolved, "/", MAXPATHLEN); | 156 | strlcat(resolved, "/", MAXPATHLEN); |
155 | strlcat(resolved, wbuf, MAXPATHLEN); | 157 | strlcat(resolved, wbuf, MAXPATHLEN); |
156 | } | 158 | } |