From d6eff2c71e81f427588f5847c661a1efc24eecdb Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Dec 11 2009 18:23:23 +0000 Subject: - set the umask at daemon startup --- diff --git a/certmonger.spec b/certmonger.spec index c8eec1a..eeea57f 100644 --- a/certmonger.spec +++ b/certmonger.spec @@ -1,5 +1,5 @@ Name: certmonger -Version: 0.15 +Version: 0.16 Release: 1%{?dist} Summary: Certificate status monitor and PKI enrollment client @@ -90,6 +90,10 @@ exit 0 %{_localstatedir}/lib/certmonger %changelog +* Fri Dec 11 2009 Nalin Dahyabhai 0.16-1 +- update to 0.16 + - set a umask at startup (Dan Walsh) + * Tue Dec 8 2009 Nalin Dahyabhai 0.15-1 - update to 0.15 - notice that a directory with a trailing '/' is the same location as the diff --git a/configure.ac b/configure.ac index c4ade66..05e6f8f 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(certmonger,0.15) +AC_INIT(certmonger,0.16) AM_INIT_AUTOMAKE([foreign]) AM_MAINTAINER_MODE AC_PROG_CC diff --git a/src/main.c b/src/main.c index c2e3888..3f8f169 100644 --- a/src/main.c +++ b/src/main.c @@ -116,6 +116,8 @@ main(int argc, char **argv) pfp = NULL; } + umask(S_IRWXG | S_IRWXO); + ctx = NULL; i = cm_init(ec, &ctx); if (i != 0) {