[bug #46305] Doing "find -L . -type d -delete" fails on symlinks to directories.

2023-02-01 Thread raf
Follow-up Comment #11, bug #46305 (project findutils): [comment #9 comment #9:] > Oh, and the patch that tries unlink() if rmdir() failes with ENOTDIR. That patch is here: [PATCH] find: fix -L and -delete removing symlinks to directories https://lists.gnu.org/archive/html/findutils-patch

[bug #46305] Doing "find -L . -type d -delete" fails on symlinks to directories.

2023-02-01 Thread raf
Follow-up Comment #10, bug #46305 (project findutils): [comment #8 comment #8:] > You bring up great points. > > I'd welcome a new, separate command-line option for a symlink-following delete, and the documentation change stating that -L is used during traversal only. The patch I submitted that