]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
win32: Fix error message when labeling volume on Windows SD
authorEric Bollengier <eric@baculasystems.com>
Thu, 25 Mar 2021 10:16:44 +0000 (11:16 +0100)
committerEric Bollengier <eric@baculasystems.com>
Fri, 26 Mar 2021 13:57:58 +0000 (14:57 +0100)
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.

bacula/src/stored/dev.c

index e423906e1c605d3430a3094881ffebcc317cf31d..0c82a848f4a2f9487492f8a6001ce44e82a1ff4c 100644 (file)
@@ -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)) {