Home | History | Annotate | Download | only in unzip

Lines Matching defs:pathname

310  * Verify that a given pathname is in the include list and not in the
314 accept_pathname(const char *pathname)
317 if (!STAILQ_EMPTY(&include) && !match_pattern(&include, pathname))
319 if (!STAILQ_EMPTY(&exclude) && match_pattern(&exclude, pathname))
511 extract2fd(struct archive *a, char *pathname, int fd)
536 error("write('%s')", pathname);
563 error("write('%s')", pathname);
573 " heuristic", pathname);
586 error("write('%s')", pathname);
702 char *pathname, *realpathname;
706 pathname = pathdup(archive_entry_pathname(e));
710 if (pathname[0] == '/' ||
711 strncmp(pathname, "../", 3) == 0 ||
712 strstr(pathname, "/../") != NULL) {
713 warningx("skipping insecure entry '%s'", pathname);
715 free(pathname);
721 warningx("skipping non-regular entry '%s'", pathname);
723 free(pathname);
730 free(pathname);
735 if (!accept_pathname(pathname)) {
737 free(pathname);
743 for (p = q = pathname; *p; ++p)
748 realpathname = pathcat(d_arg, pathname);
760 free(pathname);
766 char *pathname;
769 pathname = pathdup(archive_entry_pathname(e));
774 warningx("skipping non-regular entry '%s'", pathname);
776 free(pathname);
783 free(pathname);
788 if (!accept_pathname(pathname)) {
790 free(pathname);
795 info("x %s\n", pathname);
797 (void)extract2fd(a, pathname, STDOUT_FILENO);
799 free(pathname);