machine: update log message and comments

Follow-up for 9af9d66184 and
453f2359ff.
This commit is contained in:
Yu Watanabe
2025-01-07 09:11:09 +01:00
committed by Lennart Poettering
parent 56a07d10a5
commit 2bef5d187d
2 changed files with 3 additions and 3 deletions
+2 -2
View 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;
+1 -1
View 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);
}