projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new back-end function to return the exit code of the remote
[u/mdw/putty]
/
telnet.c
diff --git
a/telnet.c
b/telnet.c
index
5c5d2ce
..
5e5fb24
100644
(file)
--- a/
telnet.c
+++ b/
telnet.c
@@
-848,6
+848,12
@@
static int telnet_ldisc(int option)
return FALSE;
}
return FALSE;
}
+static int telnet_exitcode(void)
+{
+ /* Telnet doesn't transmit exit codes back to the client */
+ return 0;
+}
+
Backend telnet_backend = {
telnet_init,
telnet_send,
Backend telnet_backend = {
telnet_init,
telnet_send,
@@
-855,6
+861,7
@@
Backend telnet_backend = {
telnet_size,
telnet_special,
telnet_socket,
telnet_size,
telnet_special,
telnet_socket,
+ telnet_exitcode,
telnet_sendok,
telnet_ldisc,
telnet_unthrottle,
telnet_sendok,
telnet_ldisc,
telnet_unthrottle,