summaryrefslogtreecommitdiffstats
path: root/src/machine
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2025-01-07 00:30:37 +0100
committerLennart Poettering <lennart@poettering.net>2025-01-07 09:11:09 +0100
commit2bef5d187dc5c74e1449b4d1018a78a82e69a6d8 (patch)
tree5b9f470e2feb1513ffa8b9cd8f6b898c226541c1 /src/machine
parentxopenat(): introduce new XO_REGULAR flag (#35834) (diff)
downloadsystemd-2bef5d187dc5c74e1449b4d1018a78a82e69a6d8.tar.xz
systemd-2bef5d187dc5c74e1449b4d1018a78a82e69a6d8.zip
machine: update log message and comments
Follow-up for 9af9d66184caf565805d0cabc1dd99de5469931e and 453f2359ffcafaafe10297319dd8f85a11a4e1c4.
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machine-varlink.c4
-rw-r--r--src/machine/machine.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/machine/machine-varlink.c b/src/machine/machine-varlink.c
index e932711311..a889b94d80 100644
--- a/src/machine/machine-varlink.c
+++ b/src/machine/machine-varlink.c
@@ -774,7 +774,7 @@ int vl_method_bind_mount(sd_varlink *link, sd_json_variant *parameters, sd_varli
if (r != 0)
return r;
- /* There is no need for extra validation since json_dispatch_const_path() does path_is_valid() and path_is_absolute().*/
+ /* There is no need for extra validation since json_dispatch_const_path() does path_is_valid() and path_is_absolute(). */
const char *dest = p.dest ?: p.src;
Machine *machine;
@@ -881,7 +881,7 @@ int vl_method_copy_internal(sd_varlink *link, sd_json_variant *parameters, sd_va
if (r != 0)
return r;
- /* There is no need for extra validation since json_dispatch_path() does path_is_valid() and path_is_absolute().*/
+ /* There is no need for extra validation since json_dispatch_const_path() does path_is_valid() and path_is_absolute(). */
const char *dest = p.dest ?: p.src;
const char *container_path = copy_from ? p.src : dest;
const char *host_path = copy_from ? dest : p.src;
diff --git a/src/machine/machine.c b/src/machine/machine.c
index 752ba66790..54a5431c19 100644
--- a/src/machine/machine.c
+++ b/src/machine/machine.c
@@ -1048,7 +1048,7 @@ int machine_copy_from_to(
_cleanup_close_ int container_fd = -EBADF;
container_fd = open_parent(container_path, O_CLOEXEC, 0);
if (container_fd < 0) {
- log_debug_errno(container_fd, "Failed to open destination directory: %m");
+ log_debug_errno(container_fd, "Failed to open container directory: %m");
report_errno_and_exit(errno_pipe_fd[1], container_fd);
}