mirror of
https://github.com/sheumann/telnetd.git
synced 2025-04-13 15:37:09 +00:00
o Print a correct status for unix domain sockets.
o Restore input mode when return from the command one. PR: bin/49983 Submitted by: Volker Stolz OK in general from: markm MFC after: 1 month git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@139687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
5adbfa7aec
commit
cff120dc74
@ -2262,6 +2262,7 @@ tn(int argc, char *argv[])
|
||||
hostp);
|
||||
goto fail;
|
||||
}
|
||||
hostname = hostp;
|
||||
memset(&su, 0, sizeof su);
|
||||
su.sun_family = AF_UNIX;
|
||||
strncpy(su.sun_path, hostp, sizeof su.sun_path);
|
||||
@ -2469,6 +2470,7 @@ tn(int argc, char *argv[])
|
||||
freeaddrinfo(src_res0);
|
||||
cmdrc(hostp, hostname);
|
||||
af_unix:
|
||||
connected = 1;
|
||||
if (autologin && user == NULL) {
|
||||
struct passwd *pw;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user