Lines Matching refs:lpath
164 static char lpath[PATH_MAX], new[PATH_MAX], abspath[PATH_MAX]; in fix_symlink() local
169 if ((c = readlink(path, lpath, sizeof(lpath))) == -1) { in fix_symlink()
173 lpath[c] = '\0'; /* readlink does not null terminate it */ in fix_symlink()
177 if (lpath[0] != '/') { in fix_symlink()
186 strcat(abspath,lpath); in fix_symlink()
191 printf("dangling: %s -> %s\n", path, lpath); in fix_symlink()
196 printf("deleted: %s -> %s\n", path, lpath); in fix_symlink()
206 } else if (lpath[0] == '/') { in fix_symlink()
213 fix_messy = tidy_path(strcpy(new,lpath)); in fix_symlink()
223 printf("%s %s -> %s\n", msg, path, lpath); in fix_symlink()
231 (void) tidy_path(lpath); in fix_symlink()
232 tail = lp = lpath; in fix_symlink()