summaryrefslogtreecommitdiff
path: root/src/import/pull-tar.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-21 00:10:55 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-21 20:40:57 +0100
commit33859a6bf5fd2b62a562a751a509708617e19776 (patch)
treea308ca8645b0a42599e94af8871ad518584efe86 /src/import/pull-tar.c
parentf479d3baa74d99f3caeb14569fa588e0b7ff67fc (diff)
import: don't claim we had copied a settings file if we didn't
Diffstat (limited to 'src/import/pull-tar.c')
-rw-r--r--src/import/pull-tar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c
index afb13366f0..8c61c46f73 100644
--- a/src/import/pull-tar.c
+++ b/src/import/pull-tar.c
@@ -251,10 +251,12 @@ static int tar_pull_make_local_copy(TarPull *i) {
r = copy_file_atomic(i->settings_path, local_settings, 0664, i->force_local, 0);
if (r == -EEXIST)
log_warning_errno(r, "Settings file %s already exists, not replacing.", local_settings);
- else if (r < 0 && r != -ENOENT)
+ else if (r == -ENOENT)
+ log_debug_errno(r, "Skipping creation of settings file, since none was found.");
+ else if (r < 0)
log_warning_errno(r, "Failed to copy settings files %s, ignoring: %m", local_settings);
else
- log_info("Created new settings file '%s.nspawn'", i->local);
+ log_info("Created new settings file %s.", local_settings);
}
return 0;