Bug 622204
Summary: | nc should support ports and port ranges separated by commas | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jonathan Kamens <jik> | ||||
Component: | nc | Assignee: | Petr Šabata <psabata> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 13 | CC: | jzeleny, rvokal | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | nc-1.84-23.fc13 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-10-13 12:46:41 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Thanks Jonathan, I've patched the man page as well. I won't submit those to the upstream developers for now since we currently have a really old version in Fedora. I plan to update to the latest snapshots and port our patches in the near future. nc-1.84-23.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/nc-1.84-23.fc13 nc-1.84-23.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/nc-1.84-23.fc14 nc-1.84-23.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nc'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/nc-1.84-23.fc13 nc-1.84-23.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. nc-1.84-23.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 437403 [details] patch Wherever nc accepts a range of ports, it should also support one or more individual ports or port ranges separated by commas. As it happens, this is very easy to implement with minor changes to a single function. I've attached a patch. I can't figure out how to submit an upstream bug about this (the URL in the RPM appears to refer to a repository directory, not to a maintainer's web page), so I'm submitting the patch here. If you'd prefer for me to upstream it, just tell me how ;-). The patch is a lot less ominous than it looks because I had to indent a big block of code which wasn't actually modified other than the indenting.