Ignore:
Timestamp:
09/03/2010 08:07:24 (2 years ago)
Author:
chris
Message:

Merge [2625] from trunk into 0.11rc7. Fix tests for comparing excluded
files.

File:
1 edited

Legend:

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

    r2663 r2669  
    15951595                                localDirEn->d_name); 
    15961596 
    1597                         // Check whether dir is excluded before trying to 
    1598                         // stat it, to fix problems with .gvfs directories 
    1599                         // that are not readable by root causing compare 
    1600                         // to crash: 
    1601                         // http://lists.boxbackup.org/pipermail/boxbackup/2010-January/000013.html 
    1602                         if(rParams.IsExcludedDir(localDirPath)) 
    1603                         { 
    1604                                 rParams.NotifyExcludedDir(localDirPath, 
    1605                                         storeDirPath); 
    1606                                 continue; 
    1607                         } 
    1608  
    16091597#ifndef HAVE_VALID_DIRENT_D_TYPE 
    16101598                        EMU_STRUCT_STAT st; 
    16111599                        if(EMU_LSTAT(localDirPath.c_str(), &st) != 0) 
    16121600                        { 
    1613                             THROW_EXCEPTION_MESSAGE(CommonException, 
    1614                                 OSFileError, localDirPath); 
     1601                                // Check whether dir is excluded before trying 
     1602                                // to stat it, to fix problems with .gvfs 
     1603                                // directories that are not readable by root 
     1604                                // causing compare to crash: 
     1605                                // http://lists.boxbackup.org/pipermail/boxbackup/2010-January/000013.html 
     1606                                if(rParams.IsExcludedDir(localDirPath)) 
     1607                                { 
     1608                                        rParams.NotifyExcludedDir(localDirPath, 
     1609                                                storeDirPath); 
     1610                                        continue; 
     1611                                } 
     1612                                else 
     1613                                { 
     1614                                        THROW_EXCEPTION_MESSAGE(CommonException, 
     1615                                                OSFileError, localDirPath); 
     1616                                } 
    16151617                        } 
    16161618                         
Note: See TracChangeset for help on using the changeset viewer.