From 15c00a1a2ec592dd1872e74f00fc8fcef5ce5ccb Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 7 Aug 2007 15:52:16 +0000 Subject: [PATCH] kes Fix display of Recycle flag after update volume=foo recycle=yes. It previously printed New Recyle flag is: no. This fixes bug #917. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5299 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_update.c | 4 ++-- bacula/technotes-2.1 | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/ua_update.c b/bacula/src/dird/ua_update.c index f5bd5ee164..da87a02fed 100644 --- a/bacula/src/dird/ua_update.c +++ b/bacula/src/dird/ua_update.c @@ -242,7 +242,7 @@ static void update_volrecycle(UAContext *ua, char *val, MEDIA_DBR *mr) ua->error_msg("%s", db_strerror(ua->db)); } else { ua->info_msg(_("New Recycle flag is: %s\n"), - mr->Recycle==1?_("yes"):_("no")); + recycle==1?_("yes"):_("no")); } } @@ -262,7 +262,7 @@ static void update_volinchanger(UAContext *ua, char *val, MEDIA_DBR *mr) ua->error_msg("%s", db_strerror(ua->db)); } else { ua->info_msg(_("New InChanger flag is: %s\n"), - mr->InChanger==1?_("yes"):_("no")); + InChanger==1?_("yes"):_("no")); } } diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 78cbe3058d..6454893fe8 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -1,6 +1,10 @@ Technical notes on version 2.1 General: +07Aug07 +kes Fix display of Recycle flag after update volume=foo recycle=yes. + It previously printed New Recyle flag is: no. This fixes bug + #917. 06Aug07 kes Correct seg fault when switching tape drives during restore. kes Commit uid_gid_name.c (replacement for idcache.c), but will not -- 2.39.5