[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] find: fix -L and -delete removing symlinks to directories
From: |
raf |
Subject: |
[PATCH] find: fix -L and -delete removing symlinks to directories |
Date: |
Sun, 23 Oct 2022 09:37:34 +1100 |
find: fix -L and -delete removing symlinks to directories
Fixes https://savannah.gnu.org/bugs/?46305
* NEWS (Bug Fixes): Mention the change.
* doc/find.texi (-delete action): Add explanation of the issue.
* find/find.1 (-delete action): Add explanation of the issue.
* find/pred.c (pred_delete): Do unlink when rmdir fails (ENOTDIR).
* find/testsuite/Makefile.am: Add new test and output files.
* find/testsuite/find.gnu/deletedirsymlink.exp: New test.
* find/testsuite/find.gnu/deletedirsymlink.xo: New test output.
- [PATCH] find: fix -L and -delete removing symlinks to directories,
raf <=