diff options
Diffstat (limited to 'ftparchive')
-rw-r--r-- | ftparchive/writer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 3283128d..7ecfe78e 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -284,7 +284,8 @@ bool FTWScanner::Delink(string &FileName,const char *OriginalPath, if (link(FileName.c_str(),OriginalPath) != 0) { // Panic! Restore the symlink - symlink(OldLink,OriginalPath); + if (symlink(OldLink,OriginalPath) != 0) + _error->Errno("symlink", "failed to restore symlink"); return _error->Errno("link",_("*** Failed to link %s to %s"), FileName.c_str(), OriginalPath); |