chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tmpfiles: do not fail when copying an empty directory
[elogind.git]
/
src
/
shared
/
copy.c
diff --git
a/src/shared/copy.c
b/src/shared/copy.c
index 4c227c8bee387a7a8a58b1e1c059c30934a91fa9..073b7279b43ac3b96e95a2d71b3fdd2eb2216b54 100644
(file)
--- 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;