Skip to content

Conversation

@stanislav-brabec
Copy link
Contributor

The patch addressed a specific net-tools-1.60 problem: attempt to access a socket before it is actually opened. This does not happen in recent versions, so the patch is more harmful than useful, as it could hide a real problem, if it happens.

For more see
#32 (comment)

The patch addressed a specific net-tools-1.60 problem: attempt to access a
socket before it is actually opened. This does not happen in recent
versions, so the patch is more harmful than useful, as it could hide a real
problem, if it happens.

For more see
ecki#32 (comment)
@ecki ecki changed the title Revert 55c95c0 Revert 55c95c0 (#50) Sep 8, 2025
skfd = get_socket_for_af(AF_INET);
if (skfd < 0) {
fprintf(stderr, _("warning: no inet socket available: %s\n"),
strerror(errno));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw I am not sure strerror() works here as getsocketforaf does no syscall, but let’s accept the revert and change it afterwards (or maybe store the error in the fd field)

@ecki ecki merged commit d17320f into ecki:master Sep 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants