]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix logic error in clearing bit on Windows
authorKern Sibbald <kern@sibbald.com>
Sun, 8 Mar 2020 10:50:53 +0000 (11:50 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 8 Mar 2020 10:50:53 +0000 (11:50 +0100)
bacula/src/stored/stored.c

index 26e58d367ae93d44fe28f7a18fce733e097c0eff..41ad17bdd70ca13ac430533d883404cf268f8f0e 100644 (file)
@@ -643,7 +643,7 @@ void *device_initialization(void *arg)
 
 #ifdef HAVE_WIN32
       if (device->cap_bits & CAP_SYNCONCLOSE) {
-         device->cap_bits & ~CAP_SYNCONCLOSE; /* Not available on windows */
+         device->cap_bits &= ~CAP_SYNCONCLOSE; /* Clear bit not used on Windows */
       }
 #endif
       /*