From a36bb76941a692c75575f75edde8496549fcc44b Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 12 Feb 1999 19:45:53 +0000 Subject: fix tabs lost apparently in copy&paste --- lib/libc/stdlib/realpath.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/realpath.c b/lib/libc/stdlib/realpath.c index b5177e9..80ed43f 100644 --- a/lib/libc/stdlib/realpath.c +++ b/lib/libc/stdlib/realpath.c @@ -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; -- cgit v1.1