static char no[] = "no";
ASSERTD(buflen > 255, "buflen must be long enough to hold an ip address");
+ if (!jcr) {
+ /* Guard in case when user wants to use some per-job variable in the daemon's messages */
+ Dmsg1(400, "Got null jcr in the callback for param: %s!\n", param);
+ return NULL;
+ }
+
switch (param[0]) {
case 'f':
if (jcr->fileset) {
return bstrncpy(buf, tmp.c_str(), buflen);
}
break;
+ case 'm':
+ if (jcr->previous_jr.JobId) {
+ return edit_uint64(jcr->previous_jr.JobId, buf);
+ }
+ break;
case 'p':
if (jcr->pool) {
return jcr->pool->name();