-
Notifications
You must be signed in to change notification settings - Fork 754
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
Invalid file on bsdtar command line results in internal errors... #794
Comments
|
I can confirm this behavior. Simply use: I will look into it later. |
|
I don't understand why this was unnoticed and not catched by any test. |
|
Thank you! How hard would it be write a test case for this? Have you done that in a follow up commit? |
|
Hi, I didn't do that yet. This will probably require changing the test framework (adding new functions). The only thing we can do is look for "INTERNAL ERROR" in the stderr output. I think we should go a different way and introduce additional exit codes for tar. |
|
Adding exit codes for tar is tricky: I could support having a special exit code for "INTERNAL ERROR" except that libarchive doesn't return anything special for "INTERNAL ERROR" (other than However, it's pretty clear that tar should never, ever print "INTERNAL ERROR", so it might be worth adding a test function that takes a file name (presumably of captured stderr) and fails if that string appears anywhere in the file. Something like: Then we could start augmenting various tests with calls to |
This was reported to the FreeBSD bugzilla as:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213092
The text was updated successfully, but these errors were encountered: