]> andersk Git - gssapi-openssh.git/blobdiff - openssh/openbsd-compat/realpath.c
Import of OpenSSH 3.8p1
[gssapi-openssh.git] / openssh / openbsd-compat / realpath.c
index 77da14e7c246d570bb8c1dacfc4d6686dc992db9..218fbecb2beb6992e601811e9f2ef2ab788c79e4 100644 (file)
@@ -1,3 +1,5 @@
+/* OPENBSD ORIGINAL: lib/libc/stdlib/realpath.c */
+
 /*
  * Copyright (c) 1994
  *     The Regents of the University of California.  All rights reserved.
@@ -150,7 +152,7 @@ loop:
                        serrno = ENAMETOOLONG;
                        goto err1;
                }
-               if (needslash == 0)
+               if (needslash)
                        strlcat(resolved, "/", MAXPATHLEN);
                strlcat(resolved, wbuf, MAXPATHLEN);
        }
This page took 0.365292 seconds and 4 git commands to generate.