git-svn: trunk@4471
Tomasz Kojm authored on 2008/11/26 05:07:11... | ... |
@@ -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 |
Mon Nov 24 15:17:03 EET 2008 (edwin) |
2 | 6 |
------------------------------------ |
3 | 7 |
* libclamav/Makefile.am, libclamav/Makefile.in, libclamav/others.c: |
... | ... |
@@ -220,7 +220,7 @@ int main(int argc, char **argv) |
220 | 220 |
#endif |
221 | 221 |
|
222 | 222 |
/* initialize logger */ |
223 |
- logg_lock = cfgopt(copt, "LogFileUnlock")->enabled; |
|
223 |
+ logg_lock = !cfgopt(copt, "LogFileUnlock")->enabled; |
|
224 | 224 |
logg_time = cfgopt(copt, "LogTime")->enabled; |
225 | 225 |
logok = cfgopt(copt, "LogClean")->enabled; |
226 | 226 |
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; |