| version 1.26, 2002/10/19 18:58:32 |
version 1.27, 2002/11/17 01:51:24 |
| Line 107 realpath(path, resolved) |
|
| Line 107 realpath(path, resolved) |
|
| * if it is a directory, then change to that directory. |
* if it is a directory, then change to that directory. |
| * get the current directory name and append the basename. |
* get the current directory name and append the basename. |
| */ |
*/ |
| (void)strncpy(resolved, path, MAXPATHLEN - 1); |
(void)strlcpy(resolved, path, MAXPATHLEN); |
| resolved[MAXPATHLEN - 1] = '\0'; |
|
| loop: |
loop: |
| q = strrchr(resolved, '/'); |
q = strrchr(resolved, '/'); |
| if (q != NULL) { |
if (q != NULL) { |