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=5b1872833a5d5bc4e35ef95be85367fa908db53d;hpb=9a57c62944258c750d80bca4fe56de4dbab46d67;p=elogind.git diff --git a/src/remount-api-vfs.c b/src/remount-api-vfs.c index 5b1872833..8bbc021dc 100644 --- a/src/remount-api-vfs.c +++ b/src/remount-api-vfs.c @@ -52,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;