From 8324f9351c5d22fa49fa59d1ec3f71afa9408143 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 16 Sep 2025 15:51:08 +0100 Subject: [PATCH] machine: add a comment to clarify that root_directory is informational only To avoid any possible mistakes in the future, add a comment in the object declaration --- src/machine/machine.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/machine/machine.h b/src/machine/machine.h index 8f1a044f7a0..4bdb049c5fb 100644 --- a/src/machine/machine.h +++ b/src/machine/machine.h @@ -45,6 +45,8 @@ typedef struct Machine { char *state_file; char *service; + /* Note that the root directory is accepted as-is from the caller, including unprivileged users, so + * do not use it for anything but informational purposes. */ char *root_directory; char *unit; -- 2.47.3