From 0b1c0782bbf88d0ba215d4f8c5a0283ec5840e3a Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Mon, 5 Oct 2026 16:55:12 +0200 Subject: [PATCH] portablectl: quote the profile name in the validation error With an empty profile we get: $ portablectl attach -p "" foo Unit profile name not valid: It's not clear what is the profile. Let's quote it so it's clear also for empty profile names. (cherry picked from commit 6c8b21d30db4f4d5a0cdce9f2dc6a99b9b47e7c7) --- src/portable/portablectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 2aa0157b2a..a6d1ff8c35 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -1590,7 +1590,7 @@ static int parse_argv(int argc, char *argv[], char ***remaining_args) { if (!filename_is_valid(opts.arg)) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), - "Unit profile name not valid: %s", opts.arg); + "Profile name '%s' is not valid.", opts.arg); arg_profile = opts.arg; break;