]> git.sur5r.net Git - bacula/bacula/commitdiff
Make filed/job.c downward compatible
authorKern Sibbald <kern@sibbald.com>
Fri, 25 Feb 2005 09:48:47 +0000 (09:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 25 Feb 2005 09:48:47 +0000 (09:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1841 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/job.c

index 8b055faa225229b15b242c039140b1822b606d5d..68710497e2ca0a9936c362fa263e97c79b8ff085 100644 (file)
@@ -1139,6 +1139,9 @@ static int level_cmd(JCR *jcr)
       buf = get_memory(dir->msglen+1);
       utime_t since_time, adj;
       btime_t his_time, bt_start, rt=0, bt_adj=0;
+      if (jcr->JobLevel == 0) {
+        jcr->JobLevel = L_SINCE;     /* if no other job level set, do it now */
+      }
       if (sscanf(dir->msg, "level = since_utime %s mtime_only=%d",
                 buf, &mtime_only) != 2) {
         goto bail_out;