libc.obj: fix opendir #645

Merged
Egor00f merged 5 commits from Egor00f/kolibrios:update-opendir into main 2026-08-17 15:42:55 +00:00
Owner

Changes:

  • ignore EOF error
  • fix buf size
    520 and 264 were mixed up
  • Separate checks for malloc and _ksys_read_dir
  • fix some potential errors:
    • size of list->objs[i].d_name
  • handle the case if list->objs is not allocated
  • update dir_example.c
    • it may have page fail if run it from shell, because it try call con_set_flags
    • fix mkdir test
    • show opendir error
# Changes: - [x] ignore `EOF` error - [x] fix buf size `520` and `264` were mixed up - [x] Separate checks for `malloc` and `_ksys_read_dir` - [x] fix some potential errors: + size of `list->objs[i].d_name` + handle the case if `list->objs` is not allocated - [x] update `dir_example.c` + it may have page fail if run it from `shell`, because it try call `con_set_flags` + fix `mkdir` test + show `opendir` error
Egor00f added the
Priority
Medium
3
Category
Libraries
Lang/C
Kind
Bug
labels 2026-08-12 20:51:37 +00:00
Egor00f requested review from Developers 2026-08-12 20:51:38 +00:00
Egor00f requested review from Owners 2026-08-12 20:51:39 +00:00
Egor00f scheduled this pull request to auto merge when all checks succeed 2026-08-13 06:42:34 +00:00
Egor00f added 5 commits 2026-08-15 21:03:07 +00:00
Egor00f force-pushed update-opendir from 88d6119830 to d7b3666592 2026-08-15 21:03:07 +00:00 Compare
Leency approved these changes 2026-08-17 15:38:42 +00:00
dunkaist approved these changes 2026-08-17 15:42:52 +00:00
Egor00f merged commit e470ef5db5 into main 2026-08-17 15:42:55 +00:00
Egor00f deleted branch update-opendir 2026-08-17 15:42:56 +00:00
Sign in to join this conversation.
No Reviewers
KolibriOS/Developers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#645