mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
id: Use pledge()
This commit is contained in:
parent
409a4f7756
commit
d30d3fac6f
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ static bool flag_print_gid_all = false;
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
static const char* valid_option_characters = "ugGn";
|
||||
int opt;
|
||||
while ((opt = getopt(argc, argv, valid_option_characters)) != -1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue