From c192d87d83ceb41cdec278f51c3113497df3e85b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 6 Jan 2025 17:12:26 +0900 Subject: [PATCH] machine: comment source and destination must be absolute Addresses the post-merge review comment: https://github.com/systemd/systemd/pull/35066#discussion_r1901841247 --- src/shared/varlink-io.systemd.Machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/varlink-io.systemd.Machine.c b/src/shared/varlink-io.systemd.Machine.c index e66c0e74235..05a20bc4280 100644 --- a/src/shared/varlink-io.systemd.Machine.c +++ b/src/shared/varlink-io.systemd.Machine.c @@ -150,9 +150,9 @@ static SD_VARLINK_DEFINE_METHOD( static SD_VARLINK_DEFINE_METHOD( BindMount, VARLINK_DEFINE_MACHINE_LOOKUP_AND_POLKIT_INPUT_FIELDS, - SD_VARLINK_FIELD_COMMENT("The source directory/file on the host"), + SD_VARLINK_FIELD_COMMENT("The source directory/file on the host. The path must be absolute."), SD_VARLINK_DEFINE_INPUT(source, SD_VARLINK_STRING, 0), - SD_VARLINK_FIELD_COMMENT("The destination directory/file in the container. If null, it's equal to 'source'"), + SD_VARLINK_FIELD_COMMENT("The destination directory/file in the container. The path must be absolute. If null, it's equal to 'source'"), SD_VARLINK_DEFINE_INPUT(destination, SD_VARLINK_STRING, SD_VARLINK_NULLABLE), SD_VARLINK_FIELD_COMMENT("If true, the bind mount shall be read-only"), SD_VARLINK_DEFINE_INPUT(readOnly, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE), -- 2.47.3