From 0a642741bada4c8a6226480b577a7eeb82e3edec Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 8 Mar 2020 11:50:53 +0100 Subject: [PATCH] Fix logic error in clearing bit on Windows --- bacula/src/stored/stored.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /* -- 2.47.3