mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
Implement sys$chdir() and teach sh+ls to cd around and browse different dirs.
This commit is contained in:
parent
ac738b03d6
commit
2749e7f1c2
16 changed files with 147 additions and 33 deletions
|
@ -46,7 +46,7 @@ dirent* readdir(DIR* dirp)
|
|||
dirp->nextptr = dirp->buffer;
|
||||
}
|
||||
|
||||
if (dirp->nextptr > (dirp->buffer + dirp->buffer_size))
|
||||
if (dirp->nextptr >= (dirp->buffer + dirp->buffer_size))
|
||||
return nullptr;
|
||||
|
||||
auto* sys_ent = (sys_dirent*)dirp->nextptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue