X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fremount-api-vfs.c;h=8bbc021dc43af335a00afed000dc2e3ad0844e31;hb=4d8a7798e7f12c6400495cbc4d0ad57ed20ce90a;hp=8cdf7e875882009b771f3a5adcbdb68a0e27e406;hpb=22f4096ca96acd504ac74e7dfad96f07edb6da51;p=elogind.git diff --git a/src/remount-api-vfs.c b/src/remount-api-vfs.c index 8cdf7e875..8bbc021dc 100644 --- a/src/remount-api-vfs.c +++ b/src/remount-api-vfs.c @@ -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;