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
Notes: sideshowbarker 2024-07-18 23:58:40 +09:00

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;