[commit] r2106 - trunk/Tools/GMEplink

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Nov 14 15:39:00 CST 2012


Author: ksmyth
Date: Wed Nov 14 15:39:00 2012
New Revision: 2106

Log:
Print something to stdout under -N (no shell), so we can tell when the tunnel is set up

Modified:
   trunk/Tools/GMEplink/SSH.C

Modified: trunk/Tools/GMEplink/SSH.C
==============================================================================
--- trunk/Tools/GMEplink/SSH.C	Wed Nov 14 15:38:38 2012	(r2105)
+++ trunk/Tools/GMEplink/SSH.C	Wed Nov 14 15:39:00 2012	(r2106)
@@ -9075,6 +9075,16 @@
 	}
 	break;
     }
+    if (ssh->cfg.ssh_no_shell) {
+		const char msg[] = "[Connected, no shell]\r\n";
+		HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
+		if (hout != INVALID_HANDLE_VALUE)
+		{
+			DWORD dummy;
+			/* FIXME: control-character filtering */
+			WriteFile(hout, msg, sizeof(msg), &dummy, NULL);
+		}
+	}
 
     ssh->state = SSH_STATE_SESSION;
     if (ssh->size_needed)


More information about the gme-commit mailing list