-
Notifications
You must be signed in to change notification settings - Fork 771
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
Missing error messages in bsdtar on EOF #2205
Comments
Looking at the implementation:
Of which, Perhaps we can remove all Tl:Dr: Silently changing between |
Just some food for thought - I don't know the historical reason behind the libarchive specific errno(s). |
I can provide some history here:
I think this could be changed as part of v4, but I would want |
All the instances of Wouldn't it be better to, make those |
There are multiple occurrences in code where error messages are not set, which result in
(null)
output:I'm not sure which approach is the best one:
The individual source code files could be adjusted, but even then different error codes are already in place.
ARCHIVE_ERRNO_FILE_FORMAT
seems to be used more often thanARCHIVE_ERRNO_MISC
. So this would imply that unifying these files should be done first before making things worse.Alternatively, required
archive_set_error
call could be integrated into__archive_read_filter_ahead
so all cases get at least a bare minimum error message. This has the drawback that perfectly valid short reads (during bidding) would set an error message even though no real error exists. These could be removed manually again, but this just shifts the burden from regular readers to bidders.If every source code file was to be individually adjusted, I would start doing this for each format individually because otherwise, the PR would be huge and hard to verify, especially if example files should be created to prove/highlight the issue. Also, it would take quite some time.
So let me know what you think!
The text was updated successfully, but these errors were encountered: