Lines Matching refs:usefile
792 char *linkfile, *p, *realdir, *start, *usefile; in filescan() local
821 if ((usefile = realpath(infile, NULL)) == NULL) { in filescan()
828 start = usefile; in filescan()
829 else if (strncmp(usefile, basedir, basedir_len) == 0) in filescan()
830 start = usefile + basedir_len; in filescan()
832 else if (read_allowed(usefile)) in filescan()
833 start = usefile; in filescan()
838 free(usefile); in filescan()
856 if (stat(usefile, &st) == -1) { in filescan()
859 free(usefile); in filescan()
864 free(usefile); in filescan()
865 start = usefile = linkfile; in filescan()
869 free(usefile); in filescan()
870 usefile = linkfile; in filescan()
871 start = usefile + basedir_len; in filescan()
889 free(usefile); in filescan()
904 free(usefile); in filescan()
905 usefile = linkfile; in filescan()
909 start = usefile + basedir_len; in filescan()
919 free(usefile); in filescan()
928 if (op == OP_TEST || (start == usefile && *start == '/')) { in filescan()
929 if (strncmp(usefile, "man/", 4) == 0) in filescan()
930 start = usefile + 4; in filescan()
931 else if ((start = strstr(usefile, "/man/")) != NULL) in filescan()
934 start = usefile; in filescan()
984 free(usefile); in filescan()