mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03: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:
parent
6f4fbd59d9
commit
a6539cc031
Notes:
sideshowbarker
2024-07-18 03:31:34 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/a6539cc031c Pull-request: https://github.com/SerenityOS/serenity/pull/10182 Reviewed-by: https://github.com/linusg ✅
@ -796,4 +796,10 @@ int pause()
|
||||
{
|
||||
return select(0, nullptr, nullptr, nullptr, nullptr);
|
||||
}
|
||||
|
||||
int chroot(const char* path)
|
||||
{
|
||||
dbgln("FIXME: chroot(\"{}\")", path);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -114,6 +114,7 @@ int pledge(const char* promises, const char* execpromises);
|
||||
int unveil(const char* path, const char* permissions);
|
||||
char* getpass(const char* prompt);
|
||||
int pause();
|
||||
int chroot(const char*);
|
||||
|
||||
enum {
|
||||
_PC_NAME_MAX,
|
||||
|
Loading…
Reference in New Issue
Block a user