Ignore:
Timestamp:
08/03/2010 21:35:19 (2 years ago)
Author:
chris
Message:

Merge [2601] [2602] [2603] from trunk into 0.11rc7. Don't try to stat
excluded directories during compare, reported by Ben Bennett.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/RELEASE/0.11rc7/bin/bbackupquery/BackupQueries.cpp

    r2465 r2661  
    15451545                        } 
    15461546 
     1547                        std::string localDirPath(MakeFullPath(rLocalDir, 
     1548                                localDirEn->d_name)); 
     1549                        std::string storeDirPath(rStoreDir + "/" + 
     1550                                localDirEn->d_name); 
     1551 
     1552                        // Check whether dir is excluded before trying to 
     1553                        // stat it, to fix problems with .gvfs directories 
     1554                        // that are not readable by root causing compare 
     1555                        // to crash: 
     1556                        // http://lists.boxbackup.org/pipermail/boxbackup/2010-January/000013.html 
     1557                        if(rParams.IsExcludedDir(localDirPath)) 
     1558                        { 
     1559                                rParams.NotifyExcludedDir(localDirPath, 
     1560                                        storeDirPath); 
     1561                                continue; 
     1562                        } 
     1563 
    15471564#ifndef HAVE_VALID_DIRENT_D_TYPE 
    1548                         std::string fn(MakeFullPath 
    1549                                 (rLocalDir, localDirEn->d_name)); 
    15501565                        EMU_STRUCT_STAT st; 
    1551                         if(EMU_LSTAT(fn.c_str(), &st) != 0) 
    1552                         { 
    1553                             THROW_EXCEPTION(CommonException, OSFileError) 
     1566                        if(EMU_LSTAT(localDirPath.c_str(), &st) != 0) 
     1567                        { 
     1568                            THROW_EXCEPTION_MESSAGE(CommonException, 
     1569                                OSFileError, localDirPath); 
    15541570                        } 
    15551571                         
Note: See TracChangeset for help on using the changeset viewer.