chiark / gitweb /
tmpfiles: add new "C" line for copying files or directories
[elogind.git] / src / nspawn / nspawn.c
index 26ac1bf7df2369cce29bfdc2d0bf0573923b7fc5..867cf1926783ff07c9b7467e5ab4082931d5446e 100644 (file)
@@ -88,6 +88,7 @@
 #include "blkid-util.h"
 #include "gpt.h"
 #include "siphash24.h"
 #include "blkid-util.h"
 #include "gpt.h"
 #include "siphash24.h"
+#include "copy.h"
 
 #ifdef HAVE_SECCOMP
 #include "seccomp-util.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... */
 
         /* 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;
 }
 
         return 0;
 }