From e8a4a86e0043e6f6d12e6e29ef5b5e0268fb44a6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 4 Sep 2014 01:36:41 +0000 Subject: Allow changing exclude lists when reconfiguring BackupDaemon. Some tests need to do this. I don't think it happens in normal use, because the daemon's response to HUP takes a different path, I think. --- bin/bbackupd/BackupDaemon.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index d6c2a1fb..832ff314 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -2442,12 +2442,12 @@ void BackupDaemon::SetupLocations(BackupClientContext &rClientContext, const Con // Setup names in the location record pLoc->mName = *pLocName; pLoc->mPath = rConfig.GetKeyValue("Path"); - - // Read the exclude lists from the Configuration - pLoc->mapExcludeFiles.reset(BackupClientMakeExcludeList_Files(rConfig)); - pLoc->mapExcludeDirs.reset(BackupClientMakeExcludeList_Dirs(rConfig)); } + // Read the exclude lists from the Configuration + pLoc->mapExcludeFiles.reset(BackupClientMakeExcludeList_Files(rConfig)); + pLoc->mapExcludeDirs.reset(BackupClientMakeExcludeList_Dirs(rConfig)); + // Does this exist on the server? // Remove from dir object early, so that if we fail // to stat the local directory, we still don't -- cgit v1.2.3