diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-11-12 13:29:09 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-11-12 13:29:09 +0000 |
| commit | 8fd0ebc330bcdbced85877ff48bf40582bf983f9 (patch) | |
| tree | 9e8c83e567731fba5f00cc959b075fa0ee9533ba /apt-pkg/acquire.cc | |
| parent | 8342f913c05c453e784bf038745351047d09af0a (diff) | |
| parent | a05e6fe18329ff8d91acf10efd4a1408858b0fda (diff) | |
Merge branch 'more' into 'main'
APT_BUFFER_SIZE pkgTagFile default size. std::vector(1024) -> std::array<1024>. dpkgpm buffers
See merge request apt-team/apt!390
Diffstat (limited to 'apt-pkg/acquire.cc')
| -rw-r--r-- | apt-pkg/acquire.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 7ebfa4ffe..f367e4310 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -605,7 +605,7 @@ static bool IsAccessibleBySandboxUser(std::string const &filename, bool const Re char const * const filetag = ".apt-acquire-privs-test.XXXXXX"; std::string const tmpfile_tpl = flCombine(dirname, filetag); - std::unique_ptr<char, decltype(std::free) *> tmpfile { strdup(tmpfile_tpl.c_str()), std::free }; + std::unique_ptr<char, FreeDeleter> tmpfile { strdup(tmpfile_tpl.c_str()) }; int const fd = mkstemp(tmpfile.get()); if (fd == -1 && errno == EACCES) return false; |
