1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

import-common: fix log message string

The trees do look like directory trees, obviously. But they don't like
OS trees.
This commit is contained in:
Lennart Poettering 2021-01-26 15:05:25 +01:00
parent 679dab6a8f
commit dda859f84c

View File

@ -240,14 +240,14 @@ int import_mangle_os_tree(const char *path) {
if (errno != 0) if (errno != 0)
return log_error_errno(errno, "Failed to iterate through directory '%s': %m", path); return log_error_errno(errno, "Failed to iterate through directory '%s': %m", path);
log_debug("Directory '%s' does not look like a directory tree, and has multiple children, leaving as it is.", path); log_debug("Directory '%s' does not look like an OS tree, and has multiple children, leaving as it is.", path);
return 0; return 0;
} }
joined = prefix_roota(path, child); joined = prefix_roota(path, child);
r = path_is_os_tree(joined); r = path_is_os_tree(joined);
if (r == -ENOTDIR) { if (r == -ENOTDIR) {
log_debug("Directory '%s' does not look like a directory tree, and contains a single regular file only, leaving as it is.", path); log_debug("Directory '%s' does not look like an OS tree, and contains a single regular file only, leaving as it is.", path);
return 0; return 0;
} }
if (r < 0) if (r < 0)