Lines Matching refs:ept
1122 struct cfent *ept; in rmclass() local
1174 ept = eptlist[i]; in rmclass()
1176 if ((ept == NULL) || strcmp(aclass, ept->pkg_class)) { in rmclass()
1182 save_path = ept->path; in rmclass()
1183 tmp_path = fixpath(ept->path); in rmclass()
1184 ept->path = tmp_path; in rmclass()
1187 if (!ept->ftype || (ept->ftype == '^' && !script[0])) { in rmclass()
1197 echo(MSG_SHARED, ept->path); in rmclass()
1198 } else if (ept->pinfo->status == SERVED_FILE && !rm_remote) { in rmclass()
1204 echo(MSG_SERVER, ept->path); in rmclass()
1210 (void) fprintf(fp, "%s\n", ept->path); in rmclass()
1211 } else if (strchr("dx", ept->ftype) != NULL || in rmclass()
1212 (lstat(ept->path, &st) == 0 && S_ISDIR(st.st_mode))) { in rmclass()
1215 if (rmdir(ept->path)) { in rmclass()
1217 echo(MSG_DIRBUSY, ept->path); in rmclass()
1219 echo(MSG_NOTEMPTY, ept->path); in rmclass()
1221 progerr(ERR_RMDIR, ept->path); in rmclass()
1225 if (ept->pinfo->status == SERVED_FILE) { in rmclass()
1226 echo(MSG_RMSRVR, ept->path); in rmclass()
1228 echo("%s", ept->path); in rmclass()
1243 if (ept->npkgs > 1) { in rmclass()
1244 echo(MSG_SHARED, ept->path); in rmclass()
1250 if (unlink(ept->path)) { in rmclass()
1252 progerr(ERR_RMPATH, ept->path); in rmclass()
1256 if (ept->pinfo->status == SERVED_FILE) { in rmclass()
1257 echo(MSG_RMSRVR, ept->path); in rmclass()
1259 echo("%s", ept->path); in rmclass()
1267 ept->path = save_path; in rmclass()