Lines Matching refs:usefile
793 char *linkfile, *p, *realdir, *start, *usefile;
822 if ((usefile = realpath(infile, NULL)) == NULL) {
829 start = usefile;
830 else if (strncmp(usefile, basedir, basedir_len) == 0)
831 start = usefile + basedir_len;
833 else if (read_allowed(usefile))
834 start = usefile;
839 free(usefile);
857 if (stat(usefile, &st) == -1) {
860 free(usefile);
865 free(usefile);
866 start = usefile = linkfile;
870 free(usefile);
871 usefile = linkfile;
872 start = usefile + basedir_len;
890 free(usefile);
905 free(usefile);
906 usefile = linkfile;
910 start = usefile + basedir_len;
920 free(usefile);
929 if (op == OP_TEST || (start == usefile && *start == '/')) {
930 if (strncmp(usefile, "man/", 4) == 0)
931 start = usefile + 4;
932 else if ((start = strstr(usefile, "/man/")) != NULL)
935 start = usefile;
985 free(usefile);