Upon unlink failure, or when the user declines to remove ENT, mark each of its ancestor directories, so that we know not to prompt for its removal. */
| 373 | each of its ancestor directories, so that we know not to prompt for |
| 374 | its removal. */ |
| 375 | static void |
| 376 | mark_ancestor_dirs (FTSENT *ent) |
| 377 | { |
| 378 | for (FTSENT *p = ent->fts_parent; FTS_ROOTLEVEL <= p->fts_level; |
| 379 | p = p->fts_parent) |
| 380 | { |
| 381 | if (p->fts_number) |
| 382 | break; |
| 383 | p->fts_number = 1; |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | /* Remove the file system object specified by ENT. IS_DIR specifies |
| 388 | whether it is expected to be a directory or non-directory. |