Home | History | Annotate | Download | only in util

Lines Matching defs:lpath

168 	static char lpath[PATH_MAX], new[PATH_MAX], abspath[PATH_MAX];
173 if ((c = readlink(path, lpath, sizeof(lpath) - 1)) == -1) {
177 lpath[c] = '\0'; /* readlink does not null terminate it */
181 if (lpath[0] != '/') {
190 strcat(abspath,lpath);
195 printf("dangling: %s -> %s\n", path, lpath);
200 printf("deleted: %s -> %s\n", path, lpath);
210 } else if (lpath[0] == '/') {
217 fix_messy = tidy_path(strcpy(new,lpath));
227 printf("%s %s -> %s\n", msg, path, lpath);
233 /* point tail at first part of lpath that differs from path */
234 /* point p at first part of path that differs from lpath */
235 (void) tidy_path(lpath);
236 tail = lp = lpath;