LibC: Implement support for getspnam() and friends

This commit is contained in:
Gunnar Beutner 2021-05-01 11:43:38 +02:00 committed by Andreas Kling
commit 302f9798ee
Notes: sideshowbarker 2024-07-18 18:49:54 +09:00
7 changed files with 356 additions and 61 deletions

View file

@ -64,7 +64,7 @@ int main(int argc, char** argv)
setpwent();
if (pledge("stdio wpath cpath fattr tty", nullptr) < 0) {
if (pledge("stdio wpath rpath cpath fattr tty", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -93,7 +93,7 @@ int main(int argc, char** argv)
target_account.set_password(new_password.value().characters());
}
if (pledge("stdio wpath cpath fattr", nullptr) < 0) {
if (pledge("stdio wpath rpath cpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}