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
69 if (ept->ftype != 'i') { in ckentry()
71 mappath(2, ept->path); in ckentry()
73 basepath(ept->path, maptyp ? NULL : basedir, ir); in ckentry()
75 canonize(ept->path); in ckentry()
76 if (strchr("sl", ept->ftype)) { in ckentry()
78 mappath(2, ept->ainfo.local); in ckentry()
79 if (!RELATIVE(ept->ainfo.local)) { /* Absolute Path */ in ckentry()
81 if (ept->ftype == 'l') /* Hard Link */ in ckentry()
82 basepath(ept->ainfo.local, NULL, ir); in ckentry()
85 if (!RELATIVE(ept->ainfo.local)) /* Absolute Path */ in ckentry()
86 canonize(ept->ainfo.local); in ckentry()
89 if (!strchr("isl", ept->ftype)) { in ckentry()
90 mapvar(2, ept->ainfo.owner); in ckentry()
91 mapvar(2, ept->ainfo.group); in ckentry()
96 tputcfent(ept, stdout); in ckentry()
99 return (putcfile(ept, stdout)); in ckentry()
103 if (strchr("dxslcbp", ept->ftype)) in ckentry()
105 if ((path = findspool(ept)) == NULL) { in ckentry()
106 logerr(gettext(ERR_SPOOLED), ept->path); in ckentry()
117 ept->ainfo.mode = (ept->ainfo.mode & S_IAMB); in ckentry()
122 ept->ainfo.mode |= 0644; in ckentry()
123 if (!strchr("in", ept->ftype)) { in ckentry()
125 if (a_err = averify(fflag, &ept->ftype, in ckentry()
126 path, &ept->ainfo)) { in ckentry()
130 ept->path); in ckentry()
139 c_err = cverify((!fflag ? (-1) : fflag), &ept->ftype, path, in ckentry()
140 &ept->cinfo, 1); in ckentry()
148 if (aflag && !strchr("in", ept->ftype)) { in ckentry()
150 if (a_err = averify(fflag, &ept->ftype, ept->path, in ckentry()
151 &ept->ainfo)) { in ckentry()
155 ept->path); in ckentry()
157 if (maptyp && ept->pinfo->status == in ckentry()
165 if (cflag && strchr("fev", ept->ftype) && in ckentry()
166 (!nflag || ept->ftype != 'v') && /* bug # 1082144 */ in ckentry()
167 (!nflag || ept->ftype != 'e')) { in ckentry()
171 &ept->ftype, ept->path, &ept->cinfo, 1)) { in ckentry()
176 ept->path); in ckentry()
178 if (maptyp && ept->pinfo->status == in ckentry()
186 if (xflag && (ept->ftype == 'x')) { in ckentry()
188 path = strdup(ept->path); in ckentry()
191 (void) strcpy(ept->path, path); in ckentry()
196 (void) fprintf(stderr, "%s\n", ept->path); in ckentry()
287 findspool(struct cfent *ept) in findspool() argument
293 if (ept->ftype == 'i') { in findspool()
294 if (strcmp(ept->path, "pkginfo")) in findspool()
296 } else if (ept->path[0] == '/') { in findspool()
303 ept->path + (ept->path[0] == '/')); in findspool()
309 if ((ept->ftype != 'i') && (ept->volno > 0)) { in findspool()
311 "%s.%d/%s", host, ept->volno, in findspool()
312 ept->path + (ept->path[0] == '/')); in findspool()