Browse code

win32 fix (bb#255)

git-svn: trunk@2813

Tomasz Kojm authored on 2007/02/19 07:21:11
Showing 2 changed files
... ...
@@ -1,6 +1,11 @@
1
+Sun Feb 18 21:23:12 CET 2007 (tk)
2
+---------------------------------
3
+  * libclamav/lockdb.c: win32 fix (bb#255)
4
+
1 5
 Sun Feb 18 16:42:45 CET 2007 (edwin)
2 6
 ------------------------------------
3 7
   * libclamav/phish_*.c, regex_list.c: Remove obsolete $Log$ keyword.		
8
+
4 9
 Sun Feb 18 15:32:45 CET 2007 (tk)
5 10
 ---------------------------------
6 11
   * libclamav/filetypes.c: add more tags to HTML rule set (bb#218)
... ...
@@ -233,7 +233,7 @@ static int cli_lockdb(const char *dbdirpath, int wait, int writelock)
233 233
 	umask(old_mask);
234 234
     }
235 235
 #else
236
-    if(lock->lock_fd != -1) {
236
+    if(lock->lock_fd == -1) {
237 237
 	/* Create a security descriptor which allows any process to acquire the Mutex */
238 238
 	InitializeSecurityDescriptor(&sdDesc, SECURITY_DESCRIPTOR_REVISION);
239 239
 	SetSecurityDescriptorDacl(&sdDesc, TRUE, NULL, FALSE);