Lines Matching refs:buildpath
545 static char *buildpath; /* full path (so far) to extracted file */
546 static char *end; /* pointer to end of buildpath ('\0') */
566 * check end-buildpath after each append, set warning variable if
570 if ((end-buildpath) > FILNAMSIZ-3) /* need '/', one-char name, '\0' */
572 if (SSTAT(buildpath, &G.statbuf)) /* path doesn't exist */
575 free(buildpath);
581 FnFilter1(buildpath)));
582 free(buildpath);
586 if (mkdir(buildpath, 0777) == -1) { /* create the directory */
590 FnFilter2(buildpath), FnFilter1(G.filename)));
591 free(buildpath);
600 FnFilter2(buildpath), FnFilter1(G.filename)));
601 free(buildpath);
607 "checkdir error: path too long: %s\n", FnFilter1(buildpath)));
608 free(buildpath);
614 Trace((stderr, "buildpath now = [%s]\n", FnFilter1(buildpath)));
621 buildpath.
625 strcpy(pathcomp, buildpath);
628 free(buildpath);
629 buildpath = end = (char *)NULL;
643 if ((end-buildpath) >= FILNAMSIZ) {
648 FnFilter1(G.filename), FnFilter2(buildpath)));
652 Trace((stderr, "buildpath now = [%s]\n", FnFilter1(buildpath)));
664 Trace((stderr, "initializing buildpath to "));
666 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+3)) ==
670 strcpy(buildpath, rootpath);
671 end = buildpath + rootlen;
673 *buildpath = '\0';
674 end = buildpath;
676 Trace((stderr, "[%s]\n", FnFilter1(buildpath)));