Repository navigation
libcoco: report a missing image as "pathname not found" - #109
Merged
Merged
Conversation
_coco_identify_image: an image that cannot be opened is "pathname not found" (EOS_PNNF), not "badly formed pathname" (EOS_BPNAM); every os9/decb/cecb command was pointing at the wrong problem.
Check that _coco_identify_image gives EOS_PNNF for an image file that does not exist.
DrPitre
approved these changes
Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
_coco_identify_image()returnedEOS_BPNAM("badly formed pathname") whenever the image file couldn't be opened, so a missing or unreadable image was reported as a malformed name. It now returnsEOS_PNNF(error 216).os9 dirandos9 attralready report 216 for a missing image by another route, butos9 copystill went through this one:copy: error 215 on file 'ok' to 'missing.dsk,ok': badly formed pathnamecopy: error 216 on file 'ok' to 'missing.dsk,ok': pathname not foundA new test in
unittest/libdecbtest.cchecks the return value; it fails without the fix.Tested:
make -C build/unixbuilds and every unit-test suite passes, on macOS.