Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) X-RT-Original-Encoding: iso-8859-1 Content-Length: 3004 From jik@kamens.brookline.ma.us Wed Feb 12 12:28:50 1997 Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id MAA10270 for ; Wed, 12 Feb 1997 12:28:50 -0500 Received: from jik.saturn.net by MIT.EDU with SMTP id AA26002; Wed, 12 Feb 97 12:28:48 EST Received: (from jik@localhost) by jik.saturn.net (8.8.4/8.8.4) id MAA23681; Wed, 12 Feb 1997 12:32:38 -0500 Message-Id: <199702121732.MAA23681@jik.saturn.net> Date: Wed, 12 Feb 1997 12:32:38 -0500 From: "Jonathan I. Kamens" Reply-To: jik@cam.ov.com To: krb5-bugs@MIT.EDU Cc: jik@cam.ov.com Subject: Support INIT stanza in .telnetrc X-Send-Pr-Version: 3.99 >Number: 375 >Category: krb5-appl >Synopsis: Support INIT stanza in .telnetrc >Confidential: no >Severity: non-critical >Priority: medium >Responsible: krb5-unassigned >State: closed >Class: duplicate >Submitter-Id: unknown >Arrival-Date: Wed Feb 12 12:29:00 EST 1997 >Last-Modified: Thu Feb 27 10:14:59 EST 1997 >Originator: Jonathan I. Kamens >Organization: OpenVision Technologies, Inc. >Release: 1.0 >Environment: N/A >Description: Telnet should support an "INIT" stanza in .telnetrc, to be used by the user to set defaults for all hosts. I believe this patch was submitted previously, but it doesn't seem to have made it into 1.0. >How-To-Repeat: >Fix: --- krb5-1.0/src/appl/telnet/telnet/commands.c Tue Nov 26 20:42:37 1996 +++ krb5-1.0/src/appl/telnet/telnet/commands.c Tue Feb 11 20:31:45 1997 @@ -2843,6 +2843,11 @@ return 0; } +void init_cmdrc() +{ + cmdrc("INIT", "INITIALIZE"); +} + static char *rcname = 0; static char rcbuf[128]; @@ -2915,7 +2920,7 @@ continue; } /* - * This should never happen... + * This can happen in the INIT stanza */ if (c->needconnect && !connected) { printf("?Need to be connected first for %s.\r\n", margv[0]); --- krb5-1.0/src/appl/telnet/telnet/externs.h Thu Nov 14 14:53:30 1996 +++ krb5-1.0/src/appl/telnet/telnet/externs.h Tue Feb 11 20:24:04 1997 @@ -256,6 +256,7 @@ extern void command P((int, char *, int)), + init_cmdrc P((void)), Dump P((int, unsigned char *, int)), init_3270 P((void)), printoption P((char *, int, int)), --- krb5-1.0/src/appl/telnet/telnet/main.c Fri Nov 1 20:46:32 1996 +++ krb5-1.0/src/appl/telnet/telnet/main.c Tue Feb 11 20:25:17 1997 @@ -71,6 +71,8 @@ #if defined(TN3270) init_3270(); #endif + + init_cmdrc(); } void >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: hartmans State-Changed-When: Thu Feb 27 10:13:29 1997 State-Changed-Why: This is a dup of telnet/44. I held off on integrating telnet/44 when integrating your other pathces because I thought it might interact with the results of some discussions about option parsing currently going on.I no longer think this is the case, so I will merge the patch. >Unformatted: