From: Eric Bollengier Date: Thu, 25 Mar 2021 10:16:44 +0000 (+0100) Subject: win32: Fix error message when labeling volume on Windows SD X-Git-Tag: Release-11.0.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eec1a894e5eb3b7770755deba9d7f2c1f8469c25;p=thirdparty%2Fbacula.git win32: Fix error message when labeling volume on Windows SD The sync_data() method is not currently implemented on windows, the function is reporting an error, and this error is reported back to the job with an incorrect old message. --- diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index e423906e1..0c82a848f 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -274,7 +274,7 @@ void DEVICE::set_volcatinfo_from_dcr(DCR *dcr) bool DEVICE::sync_data(DCR *dcr) { - int ret=false; + int ret=true; #ifndef HAVE_WIN32 if (!has_cap(CAP_SYNCONCLOSE)) {