Skip to content

[libc] Add missing closedir to getcwd, other small cleanups#2490

Merged
ghaerr merged 1 commit intomasterfrom
closedir
Nov 28, 2025
Merged

[libc] Add missing closedir to getcwd, other small cleanups#2490
ghaerr merged 1 commit intomasterfrom
closedir

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Nov 28, 2025

After recently chasing down several potential problems with cd and pwd, it was noticed that a rare bug exists in the C library getcwd() function, when the ERANGE error is produced. This PR primarily fixes that.

Other cleanups include getting ride of the GCC unused label warning produced from #2489 and a few small source code cleanups/clarifications in exec.c, exit.c and biosparm.h.

@ghaerr ghaerr merged commit b8d6828 into master Nov 28, 2025
2 checks passed
@ghaerr ghaerr deleted the closedir branch February 21, 2026 17:21
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