From: Kern Sibbald Date: Wed, 29 Oct 2003 20:46:53 +0000 (+0000) Subject: Final changes X-Git-Tag: Release-7.0.0~9927 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71f8662ab23fbc5821ad9eeefebf9083470ee327;p=bacula%2Fbacula Final changes git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@791 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/ChangeLog b/bacula/ChangeLog index 9b85652fdd..ab40321fd6 100644 --- a/bacula/ChangeLog +++ b/bacula/ChangeLog @@ -1,6 +1,7 @@ -2003-10-29 Version 1.32c 29Oct03 +2003-10-30 Version 1.32c 30Oct03 Release 29Oct03 +- Add %v to job edit codes. It edits in the VolumeName(s). - Add code to ensure that fds 0,1, and 2 are defined by dup'ing them to /dev/null if necessary. Mostly for Windows that does not have them. - Error check dir_create_jobmedia_record() 2 places in acquire.c diff --git a/bacula/src/dird/restore.c b/bacula/src/dird/restore.c index b40a5dc09c..73e5c6b8e8 100644 --- a/bacula/src/dird/restore.c +++ b/bacula/src/dird/restore.c @@ -88,6 +88,7 @@ int do_restore(JCR *jcr) /* * The following code is kept temporarily for compatibility. * It is the predecessor to the Bootstrap file. + * DEPRECATED */ if (!jcr->RestoreBootstrap) { /* diff --git a/bacula/src/lib/util.c b/bacula/src/lib/util.c index 69341ecc19..fb2434e6a2 100644 --- a/bacula/src/lib/util.c +++ b/bacula/src/lib/util.c @@ -481,6 +481,7 @@ void make_session_key(char *key, char *seed, int mode) * %n = Unadorned Job name * %t = Job type (Backup, ...) * %r = Recipients + * %v = Volume name * * omsg = edited output message * imsg = input string containing edit codes (%x) @@ -539,6 +540,13 @@ POOLMEM *edit_job_codes(JCR *jcr, char *omsg, char *imsg, char *to) case 't': str = job_type_to_str(jcr->JobType); break; + case 'v': + if (jcr->VolumeName && jcr->VolumeName[0]) { + str = jcr->VolumeName; + } else { + str = ""; + } + break; default: add[0] = '%'; add[1] = *p; diff --git a/bacula/src/version.h b/bacula/src/version.h index c138161f4a..3a50b8ae04 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -2,8 +2,8 @@ #undef VERSION #define VERSION "1.32c" #define VSTRING "1" -#define BDATE "29 Oct 2003" -#define LSMDATE "20Oct03" +#define BDATE "30 Oct 2003" +#define LSMDATE "30Oct03" /* Debug flags */ #undef DEBUG