diff options
author | Christian PERRIER <bubulle@debian.org> | 2013-08-10 12:51:49 +0200 |
---|---|---|
committer | Christian PERRIER <bubulle@debian.org> | 2013-08-10 12:51:49 +0200 |
commit | 111f8cd9fccc0ebd8f8c5310a10343bc78569e81 (patch) | |
tree | aa97c77d9d3b02730cf74c771cc43acb74a6cce9 /ftparchive | |
parent | de81d69704bc5103ca55032a8f009820f30624c7 (diff) | |
parent | f52037d629aea696f938015e7f1ec037eb079af8 (diff) |
Merge branch 'debian/sid' of git://git.debian.org/git/apt/apt into debian/sid
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 3283128d8..7ecfe78ed 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); |