summaryrefslogtreecommitdiff
path: root/apt-pkg/clean.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-19 16:19:15 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-19 17:56:07 +0100
commit6aef1942f441e6e667982b92802907026d8cc7c6 (patch)
tree5b51b71e213a321db6f8ac7c8903aa021ba4442b /apt-pkg/clean.cc
parent87d6947d51717e8b0e975d913986161598a7259a (diff)
ignore lost+found in private directory cleanup
In ce1f3a2c we started warning about failing unlinking, which we consistently do for directories. That isn't a problem as directories usually aren't in the places we do want to clean up – with the potential exeception of "lost+found", so lets ignore it like we ignore our own partial/ subdirectory. Closes: 805424
Diffstat (limited to 'apt-pkg/clean.cc')
-rw-r--r--apt-pkg/clean.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/clean.cc b/apt-pkg/clean.cc
index ebe8a8a53..8e6bd6255 100644
--- a/apt-pkg/clean.cc
+++ b/apt-pkg/clean.cc
@@ -54,6 +54,7 @@ bool pkgArchiveCleaner::Go(std::string Dir,pkgCache &Cache)
// Skip some files..
if (strcmp(Dir->d_name,"lock") == 0 ||
strcmp(Dir->d_name,"partial") == 0 ||
+ strcmp(Dir->d_name,"lost+found") == 0 ||
strcmp(Dir->d_name,".") == 0 ||
strcmp(Dir->d_name,"..") == 0)
continue;