Changeset 2528


Ignore:
Timestamp:
22/06/2009 06:32:59 (3 years ago)
Author:
chris
Message:

Ignore stat() errors on excluded directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp

    r2481 r2528  
    295295                                if(EMU_LSTAT(filename.c_str(), &file_st) != 0) 
    296296                                { 
    297                                         // Report the error (logs and  
    298                                         // eventual email to administrator) 
    299                                         rNotifier.NotifyFileStatFailed(this,  
    300                                                 filename, strerror(errno)); 
     297                                        if(!(rParams.mrContext.ExcludeDir( 
     298                                                filename))) 
     299                                        { 
     300                                                // Report the error (logs and  
     301                                                // eventual email to 
     302                                                // administrator) 
     303                                                rNotifier.NotifyFileStatFailed( 
     304                                                        this, filename, 
     305                                                        strerror(errno)); 
    301306                                         
    302                                         // FIXME move to NotifyFileStatFailed() 
    303                                         SetErrorWhenReadingFilesystemObject( 
    304                                                 rParams, filename.c_str()); 
     307                                                // FIXME move to 
     308                                                // NotifyFileStatFailed() 
     309                                                SetErrorWhenReadingFilesystemObject( 
     310                                                        rParams, filename.c_str()); 
     311                                        } 
    305312 
    306313                                        // Ignore this entry for now. 
Note: See TracChangeset for help on using the changeset viewer.