git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamav-0.94@4472 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2008/11/26 05:09:27... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Nov 25 21:06:55 CET 2008 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * clamd: LogFileUnlock was not working correctly (bb#1304) |
|
4 |
+ |
|
1 | 5 |
Fri Nov 21 23:40:19 CET 2008 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* freshclam/manager.c: add support for http proxy in SubmitDetectionStats |
... | ... |
@@ -217,7 +217,7 @@ int main(int argc, char **argv) |
217 | 217 |
#endif |
218 | 218 |
|
219 | 219 |
/* initialize logger */ |
220 |
- logg_lock = cfgopt(copt, "LogFileUnlock")->enabled; |
|
220 |
+ logg_lock = !cfgopt(copt, "LogFileUnlock")->enabled; |
|
221 | 221 |
logg_time = cfgopt(copt, "LogTime")->enabled; |
222 | 222 |
logok = cfgopt(copt, "LogClean")->enabled; |
223 | 223 |
logg_size = cfgopt(copt, "LogFileMaxSize")->numarg; |
... | ... |
@@ -237,7 +237,7 @@ int main(int argc, char **argv) |
237 | 237 |
} |
238 | 238 |
time(&currtime); |
239 | 239 |
if(logg("#+++ Started at %s", cli_ctime(&currtime, timestr, sizeof(timestr)))) { |
240 |
- fprintf(stderr, "ERROR: Problem with internal logger. Please check the permissions on the %s file.\n", logg_file); |
|
240 |
+ fprintf(stderr, "ERROR: Can't initialize the internal logger\n"); |
|
241 | 241 |
logg_close(); |
242 | 242 |
freecfg(copt); |
243 | 243 |
return 1; |