From: Zbigniew Jędrzejewski-Szmek Date: Thu, 7 Nov 2024 14:45:24 +0000 (+0100) Subject: tmpfiles: reduce quoting in warning message X-Git-Tag: v258-rc1~1863^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=390bab53923eea822ac525d0e4aa4b7f86d8cd92;p=thirdparty%2Fsystemd.git tmpfiles: reduce quoting in warning message We printed: systemd-tmpfiles[705]: /usr/lib/tmpfiles.d/20-systemd-shell-extra.conf:10: Unknown modifiers in command 'L$'. systemd-tmpfiles[705]: /usr/lib/tmpfiles.d/systemd-network.conf:10: Unknown modifiers in command 'd$'. systemd-tmpfiles[705]: /usr/lib/tmpfiles.d/systemd-network.conf:11: Unknown modifiers in command 'd$'. ... There's a lot of additional characters here make the message harder to parse. We know that the command is a word without any whitespace, so quoting isn't really necessary. Change this to: ... unknown modifiers in command: L$ --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 86bf16356dc..bff05cda6f0 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -3684,7 +3684,7 @@ static int parse_line( else { *invalid_config = true; return log_syntax(NULL, LOG_ERR, fname, line, SYNTHETIC_ERRNO(EBADMSG), - "Unknown modifiers in command '%s'.", action); + "Unknown modifiers in command: %s", action); } if (boot && !arg_boot) {