mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fix tabs lost apparently in copy&paste
This commit is contained in:
parent
a728078455
commit
be92e0e6cd
1 changed files with 5 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ realpath(path, resolved)
|
|||
struct stat sb;
|
||||
int fd, n, rootd, serrno;
|
||||
char *p, *q, wbuf[MAXPATHLEN];
|
||||
int symlinks = 0;
|
||||
int symlinks = 0;
|
||||
|
||||
/* Save the starting point. */
|
||||
if ((fd = open(".", O_RDONLY)) < 0) {
|
||||
|
|
@ -101,10 +101,10 @@ loop:
|
|||
/* Deal with the last component. */
|
||||
if (*p != '\0' && lstat(p, &sb) == 0) {
|
||||
if (S_ISLNK(sb.st_mode)) {
|
||||
if (++symlinks > MAXSYMLINKS) {
|
||||
errno = ELOOP;
|
||||
goto err1;
|
||||
}
|
||||
if (++symlinks > MAXSYMLINKS) {
|
||||
errno = ELOOP;
|
||||
goto err1;
|
||||
}
|
||||
n = readlink(p, resolved, MAXPATHLEN - 1);
|
||||
if (n < 0)
|
||||
goto err1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue