• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/unzip60/msdos/

Lines Matching refs:buildpath

885     static char *buildpath;   /* full path (so far) to extracted file */
886 static char *end; /* pointer to end of buildpath ('\0') */
910 * check end-buildpath after each append, set warning variable if
914 if ((end-buildpath) > FILNAMSIZ-3) /* need '/', one-char name, '\0' */
917 if (_dos_getfileattr(buildpath, &attrs) || stat(buildpath, &G.statbuf))
919 if (SSTAT(buildpath, &G.statbuf)) /* path doesn't exist */
923 free(buildpath);
929 FnFilter1(buildpath)));
930 free(buildpath);
934 if (MKDIR(buildpath, 0777) == -1) { /* create the directory */
936 FnFilter2(buildpath), FnFilter1(G.filename)));
937 free(buildpath);
944 FnFilter2(buildpath), FnFilter1(G.filename)));
945 free(buildpath);
951 FnFilter1(buildpath)));
952 free(buildpath);
958 Trace((stderr, "buildpath now = [%s]\n", FnFilter1(buildpath)));
965 buildpath.
969 strcpy(pathcomp, buildpath);
972 free(buildpath);
973 buildpath = end = (char *)NULL;
984 if (end == buildpath && !G.pInfo->vollabel) {
994 if ((end-buildpath) >= FILNAMSIZ) {
997 FnFilter1(G.filename), FnFilter2(buildpath)));
1001 Trace((stderr, "buildpath now = [%s]\n", FnFilter1(buildpath)));
1013 Trace((stderr, "initializing buildpath to "));
1015 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+3)) ==
1021 *buildpath = (char)ToLower(*pathcomp);
1023 *buildpath = (char)ToLower(*rootpath);
1026 *buildpath = (char)(nLabelDrive - 1 + 'a');
1028 nLabelDrive = *buildpath - 'a' + 1; /* save for mapname() */
1029 if (uO.volflag == 0 || *buildpath < 'a' || /* no label/bogus disk */
1032 free(buildpath);
1035 *buildpath = '\0';
1036 end = buildpath;
1038 end = buildpath;
1042 strcpy(buildpath, rootpath);
1043 end = buildpath + rootlen;
1045 *buildpath = '\0';
1046 end = buildpath;
1048 Trace((stderr, "[%s]\n", FnFilter1(buildpath)));