]> git.ipfire.org Git - thirdparty/git.git/commit
daemon: remove unnecesary restriction for listener fd
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Thu, 26 Jun 2025 09:51:39 +0000 (02:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Jun 2025 15:35:08 +0000 (08:35 -0700)
commit0c856224d202a7ad7ece25c77038ac3cafb7d56c
tree787556aaab91e8a5cbc25cb1b887c6f2e7f6bbbf
parentf93ff170b93a1782659637824b25923245ac9dd1
daemon: remove unnecesary restriction for listener fd

Since df076bdbcc ([PATCH] GIT: Listen on IPv6 as well, if available.,
2005-07-23), any file descriptor assigned to a listening socket was
validated to be within the range to be used in an FDSET later.

6573faff34 (NO_IPV6 support for git daemon, 2005-09-28), moves to
use poll() instead of select(), that doesn't have that restriction,
so remove the original check.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Acked-by: Phillip Wood <phillip.wood123@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c