From: Mike Yuan Date: Wed, 25 Mar 2026 14:39:26 +0000 (+0100) Subject: creds: use parse_tristate_argument_with_auto() where appropriate X-Git-Tag: v261-rc1~714^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1060f82611be352bf77ec1eb82ec8e536849174a;p=thirdparty%2Fsystemd.git creds: use parse_tristate_argument_with_auto() where appropriate --- diff --git a/src/creds/creds.c b/src/creds/creds.c index 5f60f781f6c..9e1b2cfbcc4 100644 --- a/src/creds/creds.c +++ b/src/creds/creds.c @@ -940,15 +940,9 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_NEWLINE: - if (isempty(optarg) || streq(optarg, "auto")) - arg_newline = -1; - else { - r = parse_boolean_argument("--newline=", optarg, NULL); - if (r < 0) - return r; - - arg_newline = r; - } + r = parse_tristate_argument_with_auto("--newline=", optarg, &arg_newline); + if (r < 0) + return r; break; case 'p':