1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

LibC: Add chroot() stub

Expected behavior left as a FIXME is described here:
https://pubs.opengroup.org/onlinepubs/7908799/xsh/chroot.html

It is marked as LEGACY but still used in projects such as PHP.
This commit is contained in:
Jelle Raaijmakers 2021-09-22 23:59:13 +02:00 committed by Andreas Kling
parent 6f4fbd59d9
commit a6539cc031
2 changed files with 7 additions and 0 deletions

View file

@ -796,4 +796,10 @@ int pause()
{
return select(0, nullptr, nullptr, nullptr, nullptr);
}
int chroot(const char* path)
{
dbgln("FIXME: chroot(\"{}\")", path);
return -1;
}
}