summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-10 23:02:40 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-10 23:02:40 +0200
commit849958d1ba3533c953fad46d4d41c0ec6e48316d (patch)
tree4002001e577cf348fe5df3fc4aa359bd21428a52 /src/nspawn
parentcde684a2932d3c8cbb9b3374aec27a1c20ba75fa (diff)
tmpfiles: add new "C" line for copying files or directories
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 26ac1bf7df..867cf19267 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -88,6 +88,7 @@
#include "blkid-util.h"
#include "gpt.h"
#include "siphash24.h"
+#include "copy.h"
#ifdef HAVE_SECCOMP
#include "seccomp-util.h"
@@ -773,7 +774,7 @@ static int setup_resolv_conf(const char *dest) {
/* We don't really care for the results of this really. If it
* fails, it fails, but meh... */
- copy_file("/etc/resolv.conf", where, O_TRUNC|O_NOFOLLOW);
+ copy_file("/etc/resolv.conf", where, O_TRUNC|O_NOFOLLOW, 0644);
return 0;
}