[Bug 240549] devel/dbus: Loops over all possible file descriptors (Use closefrom(2))

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 14 May 2021 19:08:56 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240549

--- Comment #5 from commit-hook_at_FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=aee4556063e8770fd0e4fd28a29f30626d6e235a

commit aee4556063e8770fd0e4fd28a29f30626d6e235a
Author:     Adriaan de Groot <adridg_at_FreeBSD.org>
AuthorDate: 2021-05-13 22:57:15 +0000
Commit:     Adriaan de Groot <adridg_at_FreeBSD.org>
CommitDate: 2021-05-14 19:08:18 +0000

    devel/dbus: use closefrom()

    Don't do 1021 calls to close() when a single closefrom() will do.
    This patch has been submitted upstream (by the reporter) but
    is languishing there; there's a big difference between upstream's
    development branch and the released stable version. I've taken
    the initial patch from FreeBSD bugzilla, lightly mutated it with
    upstream work.

    PR:             240549
    Reported by:    rozhuk.im_at_gmail.com

 devel/dbus/Makefile                                 |  2 +-
 .../files/patch-cmake_ConfigureChecks.cmake (new)   | 10 ++++++++++
 devel/dbus/files/patch-cmake_config.h.cmake (new)   | 12 ++++++++++++
 .../dbus/files/patch-dbus_dbus-sysdeps-unix.c (new) | 21 +++++++++++++++++++++
 4 files changed, 44 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Fri May 14 2021 - 19:08:56 UTC

Original text of this message