Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For some reason the test S_ISREG fails on regular files.
For example:
stat /usr/lib/cups/backend/snmp
File: /usr/lib/cups/backend/snmp
Size: 35120 Blocks: 72 IO Block: 4096 regular file
Device: fd01h/64769d Inode: 656159 Links: 2
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-06-28 10:10:02.242856283 +0000
Modify: 2020-04-24 14:37:14.000000000 +0000
Change: 2021-12-15 23:29:04.213415906 +0000
Birth: -
If the above file is stored in tar.gz the S_ISREG(archive_entry_mode(e)) returns FALSE!