summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-04-08 10:41:49 +0000
committerJulian Andres Klode <jak@debian.org>2026-04-08 10:41:49 +0000
commit65b3ff4a262e73a71467f1aab5bdf2e1a9e00170 (patch)
tree1f40f2afce10e3b793540e9905b624f113c2ee15 /apt-pkg/contrib
parentfbde7ea4ce304a30e155a2bd9d014d196abbb496 (diff)
parent23dba65f031954df896bc3c6dfb1a9705574886b (diff)
Merge branch 'make-unique' into 'main'
apt: modernize to make_unique C++17 See merge request apt-team/apt!567
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/fileutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 74f5ec8bc..832e87127 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -3346,7 +3346,7 @@ bool DropPrivileges() /*{{{*/
{
// Verify that the user isn't still in any supplementary groups
long const ngroups_max = sysconf(_SC_NGROUPS_MAX);
- std::unique_ptr<gid_t[]> gidlist(new gid_t[ngroups_max]);
+ auto gidlist = std::make_unique<gid_t[]>(ngroups_max);
if (unlikely(gidlist == NULL))
return _error->Error("Allocation of a list of size %lu for getgroups failed", ngroups_max);
ssize_t gidlist_nr;