Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Revert back to revision 1.40, as requested by c...



details:   https://anonhg.NetBSD.org/src/rev/8f651d1300c4
branches:  trunk
changeset: 586766:8f651d1300c4
user:      elad <elad%NetBSD.org@localhost>
date:      Sat Dec 31 12:32:30 2005 +0000

description:
Revert back to revision 1.40, as requested by cube@.
Unbreaks KDE.

diffstat:

 lib/libc/gen/getcwd.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r ac5b93444397 -r 8f651d1300c4 lib/libc/gen/getcwd.c
--- a/lib/libc/gen/getcwd.c     Sat Dec 31 12:29:51 2005 +0000
+++ b/lib/libc/gen/getcwd.c     Sat Dec 31 12:32:30 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getcwd.c,v 1.41 2005/12/22 23:29:23 elad Exp $ */
+/*     $NetBSD: getcwd.c,v 1.42 2005/12/31 12:32:30 elad Exp $ */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1995
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)getcwd.c   8.5 (Berkeley) 2/7/95";
 #else
-__RCSID("$NetBSD: getcwd.c,v 1.41 2005/12/22 23:29:23 elad Exp $");
+__RCSID("$NetBSD: getcwd.c,v 1.42 2005/12/31 12:32:30 elad Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -159,13 +159,6 @@
         * target to unresolved path.
         */
        if (lstat(resolved, &sb) == -1) {
-               /* Allow nonexistent component if this is the last one. */
-               while (*q == '/')
-                       q++;
-
-               if (*q == 0  && errno == ENOENT)
-                       return (resolved);
-
                return (NULL);
        }
        if (S_ISLNK(sb.st_mode)) {



Home | Main Index | Thread Index | Old Index