]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: update log message and comments
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Jan 2025 23:30:37 +0000 (08:30 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2025 08:11:09 +0000 (09:11 +0100)
Follow-up for 9af9d66184caf565805d0cabc1dd99de5469931e and
453f2359ffcafaafe10297319dd8f85a11a4e1c4.

src/machine/machine-varlink.c
src/machine/machine.c

index e932711311b2d6c26a8fda9f19327908781e070e..a889b94d80457e3ebe0e8dee34d6dcb83d302bab 100644 (file)
@@ -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;
index 752ba667908f5a5e99cb8042788e5010f3a0a4cd..54a5431c19e018feac06160c271e5ddb12803c62 100644 (file)
@@ -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);
                 }