1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 12:17:45 +00:00

su: Drop "tty" pledge promise after getting password from user

There's not much work left to do at this point, but let's be strict.
This commit is contained in:
Andreas Kling 2021-01-09 22:19:31 +01:00
parent 2b41155c07
commit 96c346cfb0

View file

@ -85,6 +85,11 @@ int main(int argc, char** argv)
}
}
if (pledge("stdio exec id", nullptr) < 0) {
perror("pledge");
return 1;
}
if (!account.login()) {
perror("Core::Account::login");
return 1;