mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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:
parent
2b41155c07
commit
96c346cfb0
Notes:
sideshowbarker
2024-07-18 23:58:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/96c346cfb0c
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue