|
|
| Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
| version 1.24.4.3, 2004/05/12 04:20:34 | version 1.25, 2002/04/16 19:08:43 | ||
|---|---|---|---|
|
|
||
| errno = ELOOP; | errno = ELOOP; | ||
| goto err1; | goto err1; | ||
| } | } | ||
| n = readlink(p, resolved, MAXPATHLEN-1); | n = readlink(p, resolved, MAXPATHLEN); | ||
| if (n < 0) | if (n < 0) | ||
| goto err1; | goto err1; | ||
| resolved[n] = '\0'; | resolved[n] = '\0'; | ||
|
|
||
| rootd = 0; | rootd = 0; | ||
| if (*wbuf) { | if (*wbuf) { | ||
| if (strlen(resolved) + strlen(wbuf) + (rootd ? 0 : 1) + 1 > | if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) { | ||
| MAXPATHLEN) { | |||
| errno = ENAMETOOLONG; | errno = ENAMETOOLONG; | ||
| goto err1; | goto err1; | ||
| } | } |