mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 22:29:10 +00:00
Userland: Stop id command accepting -n in default format
This commit is contained in:
parent
c6e552ac8f
commit
0f3880ec4a
Notes:
sideshowbarker
2024-07-19 10:01:42 +09:00
Author: https://github.com/RyanGrieb
Commit: 0f3880ec4a
Pull-request: https://github.com/SerenityOS/serenity/pull/1083
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ int main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (flag_print_name && !(flag_print_uid || flag_print_gid || flag_print_gid_all)) {
|
||||
fprintf(stderr, "cannot print only names or real IDs in default format\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (flag_print_uid + flag_print_gid + flag_print_gid_all > 1) {
|
||||
fprintf(stderr, "cannot print \"only\" of more than one choice\n");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue