[BACK]Return to getcwd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/getcwd.c between version 1.40 and 1.41

version 1.40, 2005/08/13 21:16:58 version 1.41, 2005/12/22 23:29:23
Line 159  loop:
Line 159  loop:
          * target to unresolved path.           * target to unresolved path.
          */           */
         if (lstat(resolved, &sb) == -1) {          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);                  return (NULL);
         }          }
         if (S_ISLNK(sb.st_mode)) {          if (S_ISLNK(sb.st_mode)) {

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

CVSweb <webmaster@jp.NetBSD.org>