From: Martin Mares Date: Sat, 22 Jul 2017 21:08:52 +0000 (+0200) Subject: Server: Do not forget to set umask X-Git-Tag: v0.9~38 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e9822b7dd42b67b6dc532a00f6059716eb20825b;p=subauth.git Server: Do not forget to set umask --- diff --git a/server/subauthd.c b/server/subauthd.c index 38b8c29..0654685 100644 --- a/server/subauthd.c +++ b/server/subauthd.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -321,6 +322,8 @@ static const struct opt_section options = { int main(int argc UNUSED, char **argv) { + umask(0077); + cf_def_file = CONFIG_DIR "/subauthd"; cf_declare_section("SubauthD", &daemon_config, 0); opt_parse(&options, argv+1);