]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Reinstate the broken -e option in pterm. Also I've just worked out a
authorSimon Tatham <anakin@pobox.com>
Sun, 6 Feb 2005 15:52:00 +0000 (15:52 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 6 Feb 2005 15:52:00 +0000 (15:52 +0000)
much better way of handling pty_argv which doesn't require uxpty.c
to be linked in to Unix PuTTY and PuTTYtel.

[originally from svn r5262]

Recipe
unix/uxpterm.c
unix/uxpty.c
unix/uxputty.c

diff --git a/Recipe b/Recipe
index 2fd0df491fff29821706ce5fe0918e581ec63b9a..8fe9f351362893a788bb3e097bd2775a4e6cc15b 100644 (file)
--- a/Recipe
+++ b/Recipe
@@ -253,9 +253,9 @@ puttygen : [G] winpgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version
 
 pterm    : [X] UXTERM uxmisc misc ldisc settings uxpty uxsel BE_NONE uxstore
          + uxsignal CHARSET cmdline uxpterm version time
-putty    : [X] UXTERM uxmisc misc ldisc settings uxpty uxsel BE_ALL uxstore
+putty    : [X] UXTERM uxmisc misc ldisc settings uxsel BE_ALL uxstore
          + uxsignal CHARSET uxputty NONSSH UXSSH UXMISC ux_x11
-puttytel : [X] UXTERM uxmisc misc ldisc settings uxpty uxsel BE_NOSSH
+puttytel : [X] UXTERM uxmisc misc ldisc settings uxsel BE_NOSSH
         + uxstore uxsignal CHARSET uxputty NONSSH UXMISC
 
 plink    : [U] uxplink uxcons NONSSH UXSSH BE_ALL logging UXMISC uxsignal ux_x11
index f2956d9d68a2416a7503e2f87a4894de4fd9fe32..50fdad92ea435128429fec7d09f5082d08312c44 100644 (file)
@@ -10,6 +10,7 @@
 const char *const appname = "pterm";
 const int use_event_log = 0;          /* pterm doesn't need it */
 const int new_session = 0, saved_sessions = 0;   /* or these */
+const int use_pty_argv = TRUE;
 
 Backend *select_backend(Config *cfg)
 {
index 8a3dbe6faccdac4c606290c3eacb9ae8f32ff329..f91dc7160ead071a18014f7d7ebc6ddee007f875 100644 (file)
@@ -171,7 +171,6 @@ static struct utmp utmp_entry;
  * make sense outside a one-pty-per-process setup.
  */
 char **pty_argv;
-int use_pty_argv;
 
 static void pty_close(Pty pty);
 
index 58ae24dab09c898d868c27bb6167d89287e5277e..0abc1ff86ed05fade1de6b6360c178462eb20579 100644 (file)
 #include "putty.h"
 #include "storage.h"
 
+/*
+ * Stubs to avoid uxpty.c needing to be linked in.
+ */
+const int use_pty_argv = FALSE;
+char **pty_argv;                      /* never used */
+
 /*
  * Clean up and exit.
  */