Searched refs:ftsent (Results 1 – 1 of 1) sorted by relevance
1231 for (FTSENT *ftsent = fts_read(fts); ftsent != NULL; ftsent = fts_read(fts)) { in fixupAsecPermissions() local1233 if (!strcmp(ftsent->fts_name, "lost+found")) { in fixupAsecPermissions()1242 const bool privateFile = !strcmp(ftsent->fts_name, filename); in fixupAsecPermissions()1244 int fd = open(ftsent->fts_accpath, O_NOFOLLOW | O_CLOEXEC); in fixupAsecPermissions()1246 SLOGE("Couldn't open file %s: %s", ftsent->fts_accpath, strerror(errno)); in fixupAsecPermissions()1253 if (ftsent->fts_info & FTS_D) { in fixupAsecPermissions()1255 } else if (ftsent->fts_info & FTS_F) { in fixupAsecPermissions()1259 if (selinux_android_restorecon(ftsent->fts_path, 0) < 0) { in fixupAsecPermissions()1260 SLOGE("restorecon failed for %s: %s\n", ftsent->fts_path, strerror(errno)); in fixupAsecPermissions()