From 286446439e1deebdfa2fd6a71bb96c82ed0da55e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 6 Mar 2010 13:54:10 +0100 Subject: [PATCH] Fix bug #1524 verify fails after adding or removing files --- bacula/src/dird/verify.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bacula/src/dird/verify.c b/bacula/src/dird/verify.c index 84644182f4..b810f139c0 100644 --- a/bacula/src/dird/verify.c +++ b/bacula/src/dird/verify.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2009 Free Software Foundation Europe e.V. + Copyright (C) 2000-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -38,7 +38,6 @@ * When the File daemon sends the attributes, compare them to * what is in the DB. * - * Version $Id$ */ @@ -604,7 +603,7 @@ void get_attributes_and_compare_to_catalog(JCR *jcr, JobId_t JobId) */ fdbr.FileId = 0; if (!db_get_file_attributes_record(jcr, jcr->db, jcr->fname, - &jcr->previous_jr, &fdbr)) { + NULL, &fdbr)) { Jmsg(jcr, M_INFO, 0, _("New file: %s\n"), jcr->fname); Dmsg1(020, _("File not in catalog: %s\n"), jcr->fname); set_jcr_job_status(jcr, JS_Differences); -- 2.39.5