mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00: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)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio rpath", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
static const char* valid_option_characters = "ugGn";
|
static const char* valid_option_characters = "ugGn";
|
||||||
int opt;
|
int opt;
|
||||||
while ((opt = getopt(argc, argv, valid_option_characters)) != -1) {
|
while ((opt = getopt(argc, argv, valid_option_characters)) != -1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue