Changeset 1919

Show
Ignore:
Timestamp:
04/11/2007 15:57:29 (14 months ago)
Author:
chris
Message:

unlink returns 0 on success, not on error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/backupclient/BackupClientRestore.cpp

    r1789 r1919  
    455455                                 
    456456                                // Unlink anything which already exists -- for resuming restores, we can't overwrite files already there. 
    457                                 if(::unlink(localFilename.c_str()) == 0) 
     457                                if(::unlink(localFilename.c_str()) != 0) 
    458458                                { 
    459459                                        BOX_ERROR("Failed to delete file '" <<