bugzilla-daemon at bugzilla.mindrot.org
2018-Oct-04 20:01 UTC
[Bug 2914] New: Use getservbyname(3) for port numbers
https://bugzilla.mindrot.org/show_bug.cgi?id=2914 Bug ID: 2914 Summary: Use getservbyname(3) for port numbers Product: Portable OpenSSH Version: 7.7p1 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: Miscellaneous Assignee: unassigned-bugs at mindrot.org Reporter: naddy at mips.inka.de Created attachment 3186 --> https://bugzilla.mindrot.org/attachment.cgi?id=3186&action=edit Patch for resolving port specifications with getservbyname Is there a reason ssh doesn't consult services(5) for port numbers? This has irked me forever. I'd rather write ssh -L icb:localhost:icb instead of ssh -L 7326, wait, 7236, uhm, grep icb /etc/services... I don't think there is any syntactic ambiguity since Unix sockets already must contain a '/'. The patch below adds this: * Try to resolve a port specification with getservbyname(3) if a numeric conversion fails. * Make the "Port" option in ssh_config handle its argument as a port rather than a plain integer. All other command line switches and configuration file options already use a2port(). This passes the existing regression tests. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2018-Oct-05 14:26 UTC
[Bug 2914] Use getservbyname(3) for port numbers
https://bugzilla.mindrot.org/show_bug.cgi?id=2914 Christian Weisgerber <naddy at mips.inka.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Christian Weisgerber <naddy at mips.inka.de> --- Committed. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 05:10 UTC
[Bug 2914] Use getservbyname(3) for port numbers
https://bugzilla.mindrot.org/show_bug.cgi?id=2914 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Damien Miller <djm at mindrot.org> --- closing resolved bugs as of 8.6p1 release -- You are receiving this mail because: You are watching the assignee of the bug.