Skip to content

fix(gdb): use POSIX-compatible find expression #1102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

akinomyoga
Copy link
Collaborator

This fixes the issue reported in #1101 (comment). There are additional fixes 41236da and 532fc05.

We here use the technique for "-mindepth 1 -maxdepth 1" explained in

https://unix.stackexchange.com/a/330372/121088

We first suffix "/." to each directory name, and skip the top level
directory by "-name . -o".  Then we skip the level-1 directories and
their contents with "-type -d -prune -o".  Finally we check the
permission and print the files.
@scop scop merged commit 79423f0 into scop:master Feb 8, 2024
@akinomyoga akinomyoga deleted the fix-gdb-posix branch February 8, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants