chiark / gitweb /
journal: store XOR combination of entry data object hashes to identify hash lines
[elogind.git] / src / quotacheck.c
index c7b20a60e6d5764ea37bfb5deda125f173936c26..98b59a090a99ef33079d27884821171c106cb954 100644 (file)
@@ -26,6 +26,7 @@
 #include <unistd.h>
 
 #include "util.h"
+#include "virt.h"
 
 static bool arg_skip = false;
 static bool arg_force = false;
@@ -35,7 +36,7 @@ static int parse_proc_cmdline(void) {
         int r;
         size_t l;
 
-        if (detect_virtualization(NULL) > 0)
+        if (detect_container(NULL) > 0)
                 return 0;
 
         if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
@@ -90,6 +91,8 @@ int main(int argc, char *argv[]) {
         log_parse_environment();
         log_open();
 
+        umask(0022);
+
         parse_proc_cmdline();
         test_files();