| version 1.24, 2000/01/22 22:19:10 |
version 1.24.6.2, 2002/11/11 22:22:09 |
|
|
| errno = ELOOP; |
errno = ELOOP; |
| goto err1; |
goto err1; |
| } |
} |
| n = readlink(p, resolved, MAXPATHLEN); |
n = readlink(p, resolved, MAXPATHLEN-1); |
| if (n < 0) |
if (n < 0) |
| goto err1; |
goto err1; |
| resolved[n] = '\0'; |
resolved[n] = '\0'; |
|
|
| * Save the last component name and get the full pathname of |
* Save the last component name and get the full pathname of |
| * the current directory. |
* the current directory. |
| */ |
*/ |
| (void)strncpy(wbuf, p, (sizeof(wbuf) - 1)); |
(void)strlcpy(wbuf, p, sizeof(wbuf)); |
| |
|
| /* |
/* |
| * Call the inernal internal version of getcwd which |
* Call the inernal internal version of getcwd which |