Lines Matching refs:ept
58 static char *findspool(struct cfent *ept);
62 ckentry(int envflag, int maptyp, struct cfent *ept, VFP_T *vfp, in ckentry() argument
70 if (ept->ftype != 'i') { in ckentry()
72 mappath(2, ept->path); in ckentry()
74 basepath(ept->path, maptyp ? NULL : basedir, ir); in ckentry()
76 canonize(ept->path); in ckentry()
77 if (strchr("sl", ept->ftype)) { in ckentry()
79 mappath(2, ept->ainfo.local); in ckentry()
80 if (!RELATIVE(ept->ainfo.local)) { /* Absolute Path */ in ckentry()
82 if (ept->ftype == 'l') /* Hard Link */ in ckentry()
83 basepath(ept->ainfo.local, NULL, ir); in ckentry()
86 if (!RELATIVE(ept->ainfo.local)) /* Absolute Path */ in ckentry()
87 canonize(ept->ainfo.local); in ckentry()
90 if (!strchr("isl", ept->ftype)) { in ckentry()
91 mapvar(2, ept->ainfo.owner); in ckentry()
92 mapvar(2, ept->ainfo.group); in ckentry()
97 tputcfent(ept, stdout); in ckentry()
100 return (putcfile(ept, stdout)); in ckentry()
104 if (strchr("dxslcbp", ept->ftype)) in ckentry()
106 if ((path = findspool(ept)) == NULL) { in ckentry()
107 logerr(gettext(ERR_SPOOLED), ept->path); in ckentry()
118 ept->ainfo.mode = (ept->ainfo.mode & S_IAMB); in ckentry()
123 ept->ainfo.mode |= 0644; in ckentry()
124 if (!strchr("in", ept->ftype)) { in ckentry()
126 if (a_err = averify(fflag, &ept->ftype, in ckentry()
127 path, &ept->ainfo)) { in ckentry()
131 ept->path); in ckentry()
140 c_err = cverify((!fflag ? (-1) : fflag), &ept->ftype, path, in ckentry()
141 &ept->cinfo, 1); in ckentry()
149 if (aflag && !strchr("in", ept->ftype)) { in ckentry()
151 if (a_err = averify(fflag, &ept->ftype, ept->path, in ckentry()
152 &ept->ainfo)) { in ckentry()
156 ept->path); in ckentry()
158 if (maptyp && ept->pinfo->status == in ckentry()
166 if (cflag && strchr("fev", ept->ftype) && in ckentry()
167 (!nflag || ept->ftype != 'v') && /* bug # 1082144 */ in ckentry()
168 (!nflag || ept->ftype != 'e')) { in ckentry()
172 &ept->ftype, ept->path, &ept->cinfo, 1)) { in ckentry()
177 ept->path); in ckentry()
179 if (maptyp && ept->pinfo->status == in ckentry()
187 if (xflag && (ept->ftype == 'x')) { in ckentry()
189 path = strdup(ept->path); in ckentry()
192 (void) strcpy(ept->path, path); in ckentry()
197 (void) fprintf(stderr, "%s\n", ept->path); in ckentry()
288 findspool(struct cfent *ept) in findspool() argument
294 if (ept->ftype == 'i') { in findspool()
295 if (strcmp(ept->path, "pkginfo")) in findspool()
297 } else if (ept->path[0] == '/') { in findspool()
304 ept->path + (ept->path[0] == '/')); in findspool()
310 if ((ept->ftype != 'i') && (ept->volno > 0)) { in findspool()
312 "%s.%d/%s", host, ept->volno, in findspool()
313 ept->path + (ept->path[0] == '/')); in findspool()