]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: comment source and destination must be absolute 35868/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Jan 2025 08:12:26 +0000 (17:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Jan 2025 08:14:26 +0000 (17:14 +0900)
Addresses the post-merge review comment:
https://github.com/systemd/systemd/pull/35066#discussion_r1901841247

src/shared/varlink-io.systemd.Machine.c

index e66c0e7423519d7ff9cb25d93bb6d56246a10c45..05a20bc4280c6a6d3cc1bcdc42009a06b916b685 100644 (file)
@@ -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),