tmpfiles: do not fail when copying an empty directory

This commit is contained in:
Kay Sievers 2014-06-19 18:57:16 +02:00
parent eca8701ae7
commit 19f3934057
2 changed files with 2 additions and 1 deletions

View file

@ -203,6 +203,7 @@ static int fd_copy_directory(int df, const char *from, const struct stat *st, in
r = -errno;
}
r = 0;
FOREACH_DIRENT(de, d, return -errno) {
struct stat buf;
int q;

View file

@ -669,7 +669,7 @@ static int create_item(Item *i) {
case COPY_FILES:
r = copy_tree(i->argument, i->path);
if (r < 0) {
log_error("Failed to copy files: %s", strerror(-r));
log_error("Failed to copy files to %s: %s", i->path, strerror(-r));
return r;
}