mirror of
https://github.com/sheumann/telnetd.git
synced 2024-11-22 01:31:54 +00:00
Merge argument parsing changes into this copy of telnet.
Submitted by: markm Approved by: bmah git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@107299 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
a2b2e46019
commit
9e0282c9ca
@ -2284,8 +2284,12 @@ tn(int argc, char *argv[])
|
||||
#endif
|
||||
(hostname = strrchr(hostp, ':')) == NULL)
|
||||
hostname = strrchr(hostp, '@');
|
||||
if (hostname == NULL) {
|
||||
hostname = hostp;
|
||||
} else {
|
||||
hostname++;
|
||||
srcroute = 1;
|
||||
}
|
||||
} else
|
||||
hostname = hostp;
|
||||
if (!portp) {
|
||||
|
Loading…
Reference in New Issue
Block a user