Skip to content

Commit

Permalink
ua_restore: fix not setting last_jobid
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsura authored and BareosBot committed Aug 23, 2023
1 parent 496f290 commit 63aec6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/dird/ua_restore.cc
Expand Up @@ -534,6 +534,7 @@ static int UserSelectJobidsOrFiles(UaContext* ua, RestoreContext* rx)
if (!HasValue(ua, i)) { return 0; }
if (*rx->JobIds != 0) { PmStrcat(rx->JobIds, ","); }
PmStrcat(rx->JobIds, ua->argv[i]);
bstrncpy(rx->last_jobid, ua->argv[i], sizeof(rx->last_jobid));
done = true;
break;
case 1: /* current */
Expand Down

0 comments on commit 63aec6a

Please sign in to comment.