[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Tomasz Kojm tkojm at clamav.net
Sun Apr 4 00:58:58 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit cd0d6a0bf28f1307cce953af971ec12ec3227bfb
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Wed Jul 15 12:34:52 2009 +0200

    clamd, clamav-milter: make pid files globally readable (bb#1642)

diff --git a/ChangeLog b/ChangeLog
index 38b21fd..c73319e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 15 12:20:04 CEST 2009 (tk)
+----------------------------------
+ * clamd, clamav-milter: make pid files globally readable (bb#1642)
+
 Wed Jul 15 11:20:56 CEST 2009 (tk)
 ----------------------------------
  * libclamav/filetypes.c: fix off-by-one error (bb#1639)
diff --git a/clamav-milter/clamav-milter.c b/clamav-milter/clamav-milter.c
index 9a28c9d..3e13e7f 100644
--- a/clamav-milter/clamav-milter.c
+++ b/clamav-milter/clamav-milter.c
@@ -306,7 +306,7 @@ int main(int argc, char **argv) {
 
     if((opt = optget(opts, "PidFile"))->enabled) {
 	FILE *fd;
-	mode_t old_umask = umask(0006);
+	mode_t old_umask = umask(0002);
 
 	if((fd = fopen(opt->strarg, "w")) == NULL) {
 	    logg("!Can't save PID in file %s\n", opt->strarg);
diff --git a/clamd/server-th.c b/clamd/server-th.c
index 59d62e0..eecee09 100644
--- a/clamd/server-th.c
+++ b/clamd/server-th.c
@@ -927,7 +927,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi
     mainpid = getpid();
     if((opt = optget(opts, "PidFile"))->enabled) {
 	    FILE *fd;
-	old_umask = umask(0006);
+	old_umask = umask(0002);
 	if((fd = fopen(opt->strarg, "w")) == NULL) {
 	    logg("!Can't save PID in file %s\n", opt->strarg);
 	} else {

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list