chiark / gitweb /
umask: change default umask to 0022 just to be sure, and set it explicitly in all...
[elogind.git] / src / remount-api-vfs.c
index 5b1872833a5d5bc4e35ef95be85367fa908db53d..8bbc021dc43af335a00afed000dc2e3ad0844e31 100644 (file)
@@ -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;