summaryrefslogtreecommitdiff
path: root/src/shared/copy.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-06-19 18:57:16 +0200
committerKay Sievers <kay@vrfy.org>2014-06-19 18:58:17 +0200
commit19f3934057d20c63f4c95791312038a41b4666d0 (patch)
tree24f522b8ba108de7dcfeab877ddadeecbe3cfcb7 /src/shared/copy.c
parenteca8701ae7adb7a89badc37d4233ea450436f14c (diff)
tmpfiles: do not fail when copying an empty directory
Diffstat (limited to 'src/shared/copy.c')
-rw-r--r--src/shared/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c
index 4c227c8bee..073b7279b4 100644
--- a/src/shared/copy.c
+++ b/src/shared/copy.c
@@ -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;