Home | History | Annotate | Download | only in setfiles

Lines Matching refs:ftsent

103 static int restore(FTSENT *ftsent, int recurse)
105 char *my_file = strdupa(ftsent->fts_path);
109 if (match(my_file, ftsent->fts_statp, &newcon) < 0) {
139 ret = filespec_add(ftsent->fts_statp->st_ino, newcon, my_file);
161 ret = lgetfilecon_raw(ftsent->fts_accpath, &curcon);
256 ret = lsetfilecon(ftsent->fts_accpath, newcon);
281 static int apply_spec(FTSENT *ftsent, int recurse)
283 if (ftsent->fts_info == FTS_DNR) {
285 r_opts->progname, ftsent->fts_path);
289 int rc = restore(ftsent, recurse);
305 FTSENT *ftsent = NULL;
322 ftsent = fts_read(fts_handle);
323 if (ftsent == NULL) {
331 dev_num = ftsent->fts_statp->st_dev;
336 if (ftsent->fts_info == FTS_DP)
339 if (ftsent->fts_statp->st_dev != dev_num &&
343 if (exclude(ftsent->fts_path)) {
344 fts_set(fts_handle, ftsent, FTS_SKIP);
349 rc = apply_spec(ftsent, recurse_this_path);
351 fts_set(fts_handle, ftsent, FTS_SKIP);
356 } while ((ftsent = fts_read(fts_handle)) != NULL);