X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fbsr.c;h=eefce24c7e5b882dbd498a82de4704f65632f1d4;hb=59f9844d56f5876903b17e0e10072464947d7596;hp=96d30c0ca3dd24f6890a6fb78663fb88ad6c8eec;hpb=f5730f7ef70171d6b637d64c55b7b0da584c403a;p=bacula%2Fbacula diff --git a/bacula/src/dird/bsr.c b/bacula/src/dird/bsr.c index 96d30c0ca3..eefce24c7e 100644 --- a/bacula/src/dird/bsr.c +++ b/bacula/src/dird/bsr.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2002-2008 Free Software Foundation Europe e.V. + Copyright (C) 2002-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -34,7 +34,6 @@ * * Kern Sibbald, July MMII * - * Version $Id$ */ #include "bacula.h" @@ -282,8 +281,7 @@ static void display_vol_info(UAContext *ua, RESTORE_CTX &rx, JobId_t JobId) } Mmsg(volmsg, "%c%-25.25s %-25.25s %-25.25s", online, bsr->VolParams[i].VolumeName, - bsr->VolParams[i].Storage, - Device); + bsr->VolParams[i].Storage, Device); add_prompt(ua, volmsg.c_str()); } } @@ -559,8 +557,15 @@ void add_findex_all(RBSR *bsr, uint32_t JobId) /* Add new JobId at end of chain */ for (nbsr=bsr; nbsr->next; nbsr=nbsr->next) { } + nbsr->next = new_bsr(); nbsr->next->JobId = JobId; + + /* If we use regexp to restore, set it for each jobid */ + if (bsr->fileregex) { + nbsr->next->fileregex = bstrdup(bsr->fileregex); + } + nbsr->next->fi = new_findex(); nbsr->next->fi->findex = 1; nbsr->next->fi->findex2 = INT32_MAX;