From: Kern Sibbald Date: Sun, 8 Mar 2020 10:50:53 +0000 (+0100) Subject: Fix logic error in clearing bit on Windows X-Git-Tag: Release-9.6.3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a642741bada4c8a6226480b577a7eeb82e3edec;p=thirdparty%2Fbacula.git Fix logic error in clearing bit on Windows --- diff --git a/bacula/src/stored/stored.c b/bacula/src/stored/stored.c index 26e58d367..41ad17bdd 100644 --- a/bacula/src/stored/stored.c +++ b/bacula/src/stored/stored.c @@ -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 /*