]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.4.4-jobname-edit.patch
Update date
[bacula/bacula] / bacula / patches / 2.4.4-jobname-edit.patch
1
2  This patch fixes bug #1255 'variable %n changed'
3
4  Apply it to version 2.4.4 with:
5
6  cd <bacula-source>
7  patch -p0 <2.4.4-jobname-edit.patch
8  ./configure <your options>
9  make
10  ...
11  make install
12
13
14 Index: src/dird/job.c
15 ===================================================================
16 --- src/dird/job.c      (revision 8455)
17 +++ src/dird/job.c      (working copy)
18 @@ -787,7 +787,7 @@
19     len = strlen(dt) + 5;   /* dt + .%02d EOS */
20     bstrncpy(name, base_name, sizeof(name));
21     name[sizeof(name)-len] = 0;          /* truncate if too long */
22 -   bsnprintf(jcr->Job, sizeof(jcr->Job), "%s.%s.%02d", name, dt, seq); /* add date & time */
23 +   bsnprintf(jcr->Job, sizeof(jcr->Job), "%s.%s_%02d", name, dt, seq); /* add date & time */
24     /* Convert spaces into underscores */
25     for (p=jcr->Job; *p; p++) {
26        if (*p == ' ') {