machine: update log message and comments
Follow-up for9af9d66184and453f2359ff.
This commit is contained in:
committed by
Lennart Poettering
parent
56a07d10a5
commit
2bef5d187d
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user