diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-27 00:31:03 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-27 00:31:03 +0200 |
commit | 6a68315e938eb2611806658828ecea86805822e7 (patch) | |
tree | 5ff552cf0e6bac9a35bedaf544cb19332663fa70 /apt-pkg/acquire-worker.cc | |
parent | 75d238ba66576c04f257e9d7c0a6995721f1441d (diff) | |
parent | 01d207a5076b6fc37a064645b13f2c6550f58b94 (diff) |
Merge branch 'portability/freebsd'
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r-- | apt-pkg/acquire-worker.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index 5b6634db8..7d6e6f79c 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -692,7 +692,7 @@ bool pkgAcquire::Worker::QueueItem(pkgAcquire::Queue::QItem *Item) { std::string const SandboxUser = _config->Find("APT::Sandbox::User"); ChangeOwnerAndPermissionOfFile("Item::QueueURI", Item->Owner->DestFile.c_str(), - SandboxUser.c_str(), "root", 0600); + SandboxUser.c_str(), ROOT_GROUP, 0600); } if (Debug == true) @@ -788,7 +788,7 @@ void pkgAcquire::Worker::PrepareFiles(char const * const caller, pkgAcquire::Que { if (RealFileExists(Itm->Owner->DestFile)) { - ChangeOwnerAndPermissionOfFile(caller, Itm->Owner->DestFile.c_str(), "root", "root", 0644); + ChangeOwnerAndPermissionOfFile(caller, Itm->Owner->DestFile.c_str(), "root", ROOT_GROUP, 0644); std::string const filename = Itm->Owner->DestFile; for (pkgAcquire::Queue::QItem::owner_iterator O = Itm->Owners.begin(); O != Itm->Owners.end(); ++O) { |