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:
parent
2b41155c07
commit
96c346cfb0
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()) {
|
if (!account.login()) {
|
||||||
perror("Core::Account::login");
|
perror("Core::Account::login");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue