chiark / gitweb /
man: nspawn fixes
[elogind.git] / src / remount-api-vfs.c
index 8cdf7e875882009b771f3a5adcbdb68a0e27e406..8bbc021dc43af335a00afed000dc2e3ad0844e31 100644 (file)
@@ -31,6 +31,7 @@
 #include "util.h"
 #include "set.h"
 #include "mount-setup.h"
+#include "exit-status.h"
 
 /* Goes through /etc/fstab and remounts all API file systems, applying
  * options that are in /etc/fstab that systemd might not have
@@ -51,6 +52,8 @@ int main(int argc, char *argv[]) {
         log_parse_environment();
         log_open();
 
+        umask(0022);
+
         if (!(f = setmntent("/etc/fstab", "r"))) {
                 log_error("Failed to open /etc/fstab: %m");
                 goto finish;