Lines Matching refs:path

120 set_infoloc(char *path)
122 if (path && *path) {
124 /* Strip the server portion of the path. */
125 infoloc = orig_path(path);
127 infoloc = strdup(path);
138 char path[PATH_MAX];
151 * create path to appropriate pkginfo file for the package that is
197 i = snprintf(path, PATH_MAX, "%s/%s", pkgloc, PKGINFO);
213 pkginfoPath, path);
222 if (strcmp(pkginfoPath, path) == 0) {
224 echoDebug(DBG_MERGINFO_SAME, path);
226 echoDebug(DBG_MERGINFO_DIFFERENT, pkginfoPath, path);
239 if ((fp = fopen(path, "w")) == NULL) {
240 progerr(ERR_CANNOT_OPEN_FOR_WRITING, path, strerror(errno));
442 i = snprintf(path, PATH_MAX, "%s/install", instdir);
448 if ((pdirfp = opendir(path)) != NULL) {
455 i = snprintf(path, PATH_MAX, "%s/install/%s",
470 if (cppath(MODE_SRC|DIR_DISPLAY, path, temp, 0644)) {
484 i = snprintf(path, PATH_MAX, "%s/install", instdir);
490 if ((pdirfp = opendir(path)) != NULL) {
507 i = snprintf(path, PATH_MAX, "%s/install/%s",
527 if (cppath(MODE_SRC, path, temp, 0644)) {
528 progerr(ERR_CANNOT_COPY, path, temp);
541 i = snprintf(path, sizeof (path), "%s/%s", instdir, PKGINFO);
542 if (i > sizeof (path)) {
555 if (cppath(MODE_SRC, path, temp, 0644)) {
556 progerr(ERR_CANNOT_COPY, path, temp);
560 i = snprintf(path, sizeof (path), "%s/pkgmap", instdir);
561 if (i > sizeof (path)) {
568 if (i > sizeof (path)) {
574 if (cppath(MODE_SRC, path, temp, 0644)) {
575 progerr(ERR_CANNOT_COPY, path, temp);
590 i = snprintf(path, sizeof (path), "%s/save", instdir);
591 if (i > sizeof (path)) {
596 if ((stat(path, &status) == 0) && (status.st_mode & S_IFDIR)) {
598 path, pkgsav);
605 progerr(ERR_PKGBINCP, path, pkgsav);