Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41a5c022 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "logcat: error on multiple PID argument"

parents d7546f1d b0e867a1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -899,6 +899,11 @@ static int __logcat(android_logcat_context_internal* context) {
            case 0:
                // only long options
                if (long_options[option_index].name == pid_str) {
                    if (pid != 0) {
                        logcat_panic(context, HELP_TRUE, "Only supports one PID argument.\n");
                        goto exit;
                    }

                    // ToDo: determine runtime PID_MAX?
                    if (!getSizeTArg(optarg, &pid, 1)) {
                        logcat_panic(context, HELP_TRUE, "%s %s out of range\n",