Skip to content

Fix os9 del crash and attr exit status on specs with no comma - #95

Merged
tlindner merged 1 commit into
nitros9project:mainfrom
tlindner:claude/epic-mcclintock-17754f
Nov 1, 2026
Merged

tlindner merged 1 commit into
nitros9project:mainfrom
tlindner:claude/epic-mcclintock-17754f

Conversation

@tlindner

Copy link
Copy Markdown
Member

_os9_open_parent_directory() added 1 to the result of strchr(',') without checking it, so a spec with no comma passed address 1 to strrchr() and os9 del image crashed. It now returns EOS_BPNAM, matching validate_pathlist(), and sets *filename to NULL so callers can free it.

os9 attr and decb attr printed open errors but always returned 0. They now keep processing the remaining files and return the first error, as os9 copy does.

_os9_open_parent_directory() added 1 to the result of strchr(',') without
checking it, so a spec with no comma passed address 1 to strrchr() and
`os9 del image` crashed. It now returns EOS_BPNAM, matching
validate_pathlist(), and sets *filename to NULL so callers can free it.

`os9 attr` and `decb attr` printed open errors but always returned 0. They
now keep processing the remaining files and return the first error, as
`os9 copy` does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tlindner
tlindner merged commit f360465 into nitros9project:main Nov 1, 2026
6 checks passed
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.

1 participant