Changeset 2661


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.

Location:
box/RELEASE/0.11rc7
Files:
2 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                         
  • box/RELEASE/0.11rc7/lib/common/Box.h

    r2544 r2661  
    120120                        OPTIONAL_DO_BACKTRACE \ 
    121121                        BOX_WARNING("Exception thrown: " \ 
    122                                 #type "(" #subtype ") (" message ") at " \ 
    123                                 __FILE__ "(" << __LINE__ << ")") \ 
     122                                #type "(" #subtype ") (" << message << \ 
     123                                ") at " __FILE__ "(" << __LINE__ << ")") \ 
    124124                } \ 
    125125                throw type(type::subtype, message); \ 
Note: See TracChangeset for help on using the changeset viewer.