From: Kern Sibbald Date: Sat, 6 Mar 2010 12:54:10 +0000 (+0100) Subject: Fix bug #1524 verify fails after adding or removing files X-Git-Tag: Release-5.2.1~1638 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1642ebd76e56d0ff9c724a79b306e1e4f8dd8b8c;p=bacula%2Fbacula Fix bug #1524 verify fails after adding or removing files --- 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);