]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Print correct JobId in bls, should fix #1331
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 10 Jul 2009 20:03:15 +0000 (20:03 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 10 Jul 2009 20:03:15 +0000 (20:03 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8976 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/bls.c
bacula/technotes

index ac881fba80b611cd9e00b953b5dcd82eba6f7400..d8149750af8d0b3fd204c86503dd6b9244c4e4e9 100644 (file)
@@ -420,6 +420,7 @@ static void get_session_record(DEVICE *dev, DEV_RECORD *rec, SESSION_LABEL *sess
 {
    const char *rtype;
    memset(sessrec, 0, sizeof(sessrec));
+   jcr->JobId = 0;
    switch (rec->FileIndex) {
    case PRE_LABEL:
       rtype = _("Fresh Volume Label");
@@ -431,6 +432,7 @@ static void get_session_record(DEVICE *dev, DEV_RECORD *rec, SESSION_LABEL *sess
    case SOS_LABEL:
       rtype = _("Begin Job Session");
       unser_session_label(sessrec, rec);
+      jcr->JobId = sessrec->JobId;
       break;
    case EOS_LABEL:
       rtype = _("End Job Session");
index 16a01a282d3ff9d1787e0a5dd2faea672a7c9b49..b9e81e1252f7600c4f9f42c899f6b5e7392a434c 100644 (file)
@@ -3,6 +3,7 @@
 General:
 
 10Jul09
+ebl  Print correct JobId in bls, should fix #1331
 kes  Apply python detect patch from Bastian Friedrich <bastian.friedrich@collax.com>
 09Jul09
 kes  Add --with-hostname to ./configure