Changeset 2601


Ignore:
Timestamp:
31/01/2010 22:55:01 (2 years ago)
Author:
chris
Message:

Don't try to stat excluded directories, reported by Ben Bennett
 http://lists.boxbackup.org/pipermail/boxbackup/2010-January/000013.html.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupquery/BackupQueries.cpp

    r2465 r2601  
    15451545                        } 
    15461546 
     1547                        std::string localDirPath(MakeFullPath(rLocalDir, 
     1548                                localDirEn->d_name)); 
     1549                        std::string storeDirPath(rStoreDir + "/" + 
     1550                                localDirEn->d_name); 
     1551 
     1552                        if(rParams.IsExcludedDir(localDirPath)) 
     1553                        { 
     1554                                rParams.NotifyExcludedDir(localDirPath, 
     1555                                        storeDirPath); 
     1556                                continue; 
     1557                        } 
     1558 
    15471559#ifndef HAVE_VALID_DIRENT_D_TYPE 
    1548                         std::string fn(MakeFullPath 
    1549                                 (rLocalDir, localDirEn->d_name)); 
    15501560                        EMU_STRUCT_STAT st; 
    1551                         if(EMU_LSTAT(fn.c_str(), &st) != 0) 
    1552                         { 
    1553                             THROW_EXCEPTION(CommonException, OSFileError) 
     1561                        if(EMU_LSTAT(localDirPath.c_str(), &st) != 0) 
     1562                        { 
     1563                            THROW_EXCEPTION_MESSAGE(CommonException, 
     1564                                OSFileError, localDirPath); 
    15541565                        } 
    15551566                         
Note: See TracChangeset for help on using the changeset viewer.