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

Michael Meskes meskes at debian.org
Tue May 19 23:38:15 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 3fb674b2ed1977a431fad44c2b88afe1e0df69a9
Author: Michael Meskes <meskes at debian.org>
Date:   Tue May 19 17:18:12 2009 +0200

    Made pidfiles world readable

diff --git a/clamav-milter/clamav-milter.c b/clamav-milter/clamav-milter.c
index 9846a02..77897c7 100644
--- a/clamav-milter/clamav-milter.c
+++ b/clamav-milter/clamav-milter.c
@@ -297,7 +297,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 18038bd..38484f3 100644
--- a/clamd/server-th.c
+++ b/clamd/server-th.c
@@ -924,7 +924,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 {
diff --git a/debian/changelog b/debian/changelog
index 844eb2a..d6fd250 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,8 +21,11 @@ clamav (0.95.1+dfsg-3) unstable; urgency=low
       - German. Closes: #526730
       - Dutch. Closes: #526745
       - Galician. Closes: #527320
+  * Made pid files word readable. There doesn't seem to be any sense in not
+    doing this given that the information is available for everyone anyway.
+    Closes: #527901
 
- -- Michael Meskes <meskes at debian.org>  Sun, 03 May 2009 12:30:07 +0200
+ -- Michael Meskes <meskes at debian.org>  Tue, 19 May 2009 17:15:53 +0200
 
 clamav (0.95.1+dfsg-2) unstable; urgency=low
 
diff --git a/freshclam/freshclam.c b/freshclam/freshclam.c
index 897e319..0e2fd3f 100644
--- a/freshclam/freshclam.c
+++ b/freshclam/freshclam.c
@@ -102,7 +102,7 @@ static void writepid(const char *pidfile)
 {
 	FILE *fd;
 	int old_umask;
-    old_umask = umask(0006);
+    old_umask = umask(0002);
     if((fd = fopen(pidfile, "w")) == NULL) {
 	logg("!Can't save PID to file %s: %s\n", pidfile, strerror(errno));
     } else {

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list