]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Change .bvfs_get_jobids() to use PriorJob
authorEric Bollengier <eric@baculasystems.com>
Tue, 26 Oct 2021 09:19:49 +0000 (11:19 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:04 +0000 (09:03 +0100)
bacula/src/dird/ua_dotcmds.c

index a449d5327e5e6df2cded8018afc42248c2930795..6c66a654fb3259ba5c6c2783a4fdd114c02e93c7 100644 (file)
@@ -1455,6 +1455,7 @@ static bool dot_bvfs_get_jobids(UAContext *ua, const char *cmd)
    /* Get JobId from ujobid */
    } else if ((pos = find_arg_with_value(ua, "ujobid")) >= 0) {
       bstrncpy(jr.Job, ua->argv[pos], sizeof(jr.Job));
+      bstrncpy(jr.PriorJob, ua->argv[pos], sizeof(jr.PriorJob));
 
    /* Return all backup jobid for a client list */
    } else if ((pos = find_arg_with_value(ua, "client")) >= 0 ||