git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@71 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2003/10/03 02:45:47... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Oct 2 19:43:57 CEST 2003 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamd: set umask also in Foreground mode (thanks to Kelsey Cummings) |
|
4 |
+ |
|
1 | 5 |
Wed Oct 1 10:52:35 BST 2003 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav: mbox/message now handles content type definition on a new |
... | ... |
@@ -73,6 +73,8 @@ void clamd(struct optstruct *opt) |
73 | 73 |
exit(1); |
74 | 74 |
} |
75 | 75 |
|
76 |
+ umask(0); |
|
77 |
+ |
|
76 | 78 |
/* initialize logger */ |
77 | 79 |
|
78 | 80 |
if(cfgopt(copt, "LogFileUnlock")) |
... | ... |
@@ -223,7 +225,6 @@ void daemonize(void) |
223 | 223 |
for(i = 0; i <= 2; i++) |
224 | 224 |
close(i); |
225 | 225 |
|
226 |
- umask(0); |
|
227 | 226 |
chdir("/"); |
228 | 227 |
|
229 | 228 |
if(fork()) |