Skip to content

Revert 55c95c0 (#50)#51

Merged
ecki merged 1 commit intoecki:masterfrom
stanislav-brabec:master
Sep 8, 2025
Merged

Revert 55c95c0 (#50)#51
ecki merged 1 commit intoecki:masterfrom
stanislav-brabec:master

Conversation

@stanislav-brabec
Copy link
Copy Markdown
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
Comment thread lib/interface.c
skfd = get_socket_for_af(AF_INET);
if (skfd < 0) {
fprintf(stderr, _("warning: no inet socket available: %s\n"),
strerror(errno));
Copy link
Copy Markdown
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