summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2018-01-19 02:20:40 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2018-01-19 21:55:39 +0100
commit38d444af2632219ab399dabadaaefaa4dcdd6ebf (patch)
treeb4a9896ec04cb8a588db15ff797c3c044d0a43fa /apt-pkg/acquire-item.cc
parent70e68ed87d8ecd011df80f00c6b8ff6316e2b413 (diff)
allow the apt/lists/auxfiles/ directory to be missing
apt 1.6~alpha6 introduced aux requests to revamp the implementation of a-t-mirror. This already included the potential of running as non-root, but the detection wasn't complete resulting in errors or could produce spurious warnings along the way if the directory didn't exist yet. References: ef9677831f62a1554a888ebc7b162517d7881116 Closes: 887624
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 7fcc5867a..792465b90 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -3979,7 +3979,7 @@ static std::string GetAuxFileNameFromURIInLists(std::string const &uri)
std::string const tmpfile_tpl = flCombine(dirname, filetag);
std::unique_ptr<char, decltype(std::free) *> tmpfile { strdup(tmpfile_tpl.c_str()), std::free };
int const fd = mkstemp(tmpfile.get());
- if (fd == -1 && errno == EACCES)
+ if (fd == -1)
return "";
RemoveFile("GetAuxFileNameFromURI", tmpfile.get());
close(fd);