From: Eric Bollengier Date: Mon, 6 Mar 2023 16:59:20 +0000 (+0100) Subject: Fix #9912 About Director crash with status dir X-Git-Tag: Beta-15.0.0~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd1cc18dddaccd949d39538700ff78bf9d91957a;p=thirdparty%2Fbacula.git Fix #9912 About Director crash with status dir #3 str_to_int64 (str=0xd5
) at edit.c:72 #4 BDB::bdb_find_next_volume (this=0x7f573403cc28, jcr=jcr@entry=0x7f573400b088, item=, item@entry=-1, InChanger=InChanger@entry=false, mr=mr@entry=0x7f57449796e0) at sql_find.c:586 --- diff --git a/bacula/src/cats/sql_find.c b/bacula/src/cats/sql_find.c index 3456d5a0f..41b164c0d 100644 --- a/bacula/src/cats/sql_find.c +++ b/bacula/src/cats/sql_find.c @@ -430,7 +430,7 @@ int BDB::bdb_find_next_volume(JCR *jcr, int item, bool InChanger, MEDIA_DBR *mr) "EndFile,EndBlock,VolType,VolParts,VolCloudParts,LastPartBytes," "LabelType,LabelDate,StorageId," "Enabled,LocationId,RecycleCount,InitialWrite," - "ScratchPoolId,RecyclePoolId,VolReadTime,VolWriteTime,ActionOnPurge,CacheRetention " + "ScratchPoolId,RecyclePoolId,VolReadTime,VolWriteTime,ActionOnPurge,CacheRetention, " "VolEncrypted " "FROM Media WHERE PoolId=%s AND MediaType='%s' " " AND (VolStatus IN ('Full', 'Append', 'Used') OR (VolStatus IN ('Recycle', 'Purged', 'Used') AND Recycle=1)) "