chiark / gitweb /
tmpfiles: do not fail when copying an empty directory
[elogind.git] / src / shared / copy.c
index 4c227c8bee387a7a8a58b1e1c059c30934a91fa9..073b7279b43ac3b96e95a2d71b3fdd2eb2216b54 100644 (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;