if (pass == 2) {
RUNSCRIPT *script = new_runscript();
- script->set_job_code_callback(job_code_callback_filesetname);
+// script->set_job_code_callback(job_code_callback_filesetname);
script->set_command(lc->str);
RUNSCRIPT *script = new_runscript();
memcpy(script, &res_runscript, sizeof(RUNSCRIPT));
- script->set_job_code_callback(job_code_callback_filesetname);
+// script->set_job_code_callback(job_code_callback_filesetname);
if (*runscripts == NULL) {
*runscripts = New(alist(10, not_owned_by_alist));
const char * job_status_to_str (int stat);
const char * job_level_to_str (int level);
void make_session_key (char *key, char *seed, int mode);
-POOLMEM * edit_job_codes (JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t job_code_callback = NULL);
+//POOLMEM * edit_job_codes (JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t job_code_callback = NULL);
+POOLMEM * edit_job_codes (JCR *jcr, char *omsg, char *imsg, const char *to);
void set_working_directory (char *wd);
const char * last_path_separator (const char *str);
BPIPE *bpipe;
char line[MAXSTRING];
- ecmd = edit_job_codes(jcr, ecmd, this->command, "", this->job_code_callback);
+// ecmd = edit_job_codes(jcr, ecmd, this->command, "", this->job_code_callback);
+ ecmd = edit_job_codes(jcr, ecmd, this->command, "");
Dmsg1(100, "runscript: running '%s'...\n", ecmd);
Jmsg(jcr, M_INFO, 0, _("%s: run command \"%s\"\n"), name, ecmd);
* to = recepients list
*
*/
-POOLMEM *edit_job_codes(JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t callback)
+//POOLMEM *edit_job_codes(JCR *jcr, char *omsg, char *imsg, const char *to, job_code_callback_t callback)
+POOLMEM *edit_job_codes(JCR *jcr, char *omsg, char *imsg, const char *to)
{
char *p, *q;
const char *str;
break;
default:
str = NULL;
- if (callback != NULL) {
- str = callback(jcr, p);
- }
+// if (callback != NULL) {
+// str = callback(jcr, p);
+// }
if (!str) {
add[0] = '%';
General:
24Dec07
+kes Partial back out (disabled) %f job code editing because it
+ does not build on Win32.
kes Fix seg fault Frank Sweetser reports in regression testing
on his systems. The problem was that the original author of
bsnprintf.c did not take into account the side effects of