⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 patches

📁 linux终端仿真程序
💻
📖 第 1 页 / 共 2 页
字号:
C-KERMIT 6.0 PATCHESMost recent update: Wed Dec 18 11:44:34 1996This file contains source-level patches to C-Kermit 6.0.192.You can apply these patches if you have source code and the necessary Ccompiler and libraries to build a new executable.  There is no need to applyany patch if it does not apply to your configuration, or if the symptom doesnot affect you or your users.Each patch is self-contained and independent from the others.  Line numberscorrespond to the source-code files of the 6.0.192 release.The patches included in this file are believed to be safe, but come with noguarantees.  They appear in chronological order as email messages separated bylines of underscores.CONTENTS:Number Domain           Description 0001   UNIX             C-Kermit mishandles timestamps on very old files 0002	Solaris 2.5++    Compilation error on Solaris 2.5 with Pro C 0003	VMS              CKERMIT.INI Fix for VMS 0004	VMS/VAX/UCX 2.0  C-Kermit 6.0 can't TELNET on VAX/VMS with UCX 2.0 0005	All              C-Kermit Might Send Packets Outside Window 0006	All              MOVE from SEND-LIST does not delete original files 0007	Solaris 2.5++    Higher serial speeds on Solaris 2.5 0008   All              C-Kermit application file name can't contain spacesLegend: ++ means "and above"____________________X-Patch-Number: 0001Date: Sun, 1 Dec 1996 22:16:56 -0800From: Paul Eggert <eggert@twinsun.com>To: kermit-support@columbia.eduSubject: C-Kermit mishandles timestamps on very old filesC-Kermit 6.0.192 rejects files whose timestamps are before 1970-01-01local time.  But every Unix can represent files with timestamps beforethat.  It's common, for example, in the US/Pacific time zone to have afile with timestamp 1969-12-31 16:00:00 local time, since this equals1970-01-01 00:00:00 UTC.  And many Unixes can represent times beforethe epoch, e.g. on Solaris 2.5.1:  $ uname -a  SunOS shade 5.5.1 Generic_103640-03 sun4u sparc SUNW,Ultra-1  $ echo $TZ  UTC0  $ ls -l test  -rw-rw-r--   1 eggert   eggert         0 Dec 13  1901 testIt is certainly not a requirement of the ANSI C Library, or of Posix,that timestamps before 1970 cannot be represented.  Here is a patch:RCS file: RCS/ckufio.c,vretrieving revision 6.0.192.0retrieving revision 6.0.192.1diff -c -r6.0.192.0 -r6.0.192.1*** ckufio.c	1996/11/23 19:27:13	6.0.192.0--- ckufio.c	1996/12/02 06:07:54	6.0.192.1****************** 2659,2666 ****      yy = time_stamp->tm_year;		/* Year - 1900 */      yy += 1900;      debug(F101,"zdatstr year","",yy);-     if (yy < 1970)			/* By definition of C library */-       return("");        if (time_stamp->tm_mon  < 0 || time_stamp->tm_mon  > 11)        return("");--- 2659,2664 ----[It is not known if this patch is safe on all UNIX platforms.]____________________X-Patch-Number: 0002Date: Mon, 02 Dec 1996 13:47:13 -0500To: kermit-support@columbia.eduSubject: Compilation error on Solaris 2.5 with Pro CFrom: "David J. Fiander" <davidf@worf.mks.com>I defined CK_ENVIRONMENT and found that the prototype for tn_snenv() inckcnet.h conflicted with the function definition in ckcnet.c.  the formerdeclared the first parameter to be a CHAR * (i.e. an unsigned char *),while the latter declared to be a char * (i.e. signed char *).  ThePro C compiler treats this as an error.  I changed the function definitionin ckcnet.c to declare the parameter as a CHAR * and the problem wasresolved.- David[Note: This problem does not occur with standard builds.Resolution: CK_ENVIRONMENT, which controls the use of TELNETNEW-ENVIRONMENT protocol, is not supported in the UNIX version ofC-Kermit 6.0.192.  The type mismatch is a mistake, however.]____________________X-Patch-Number: 0003Date: Tue, 3 Dec 96 10:56:50 ESTFrom: Mike Freeman <freeman@WATSUN.CC.COLUMBIA.EDU>Subject: CKERMIT.INI Fix for VMSA minor fix to CKERMIT.INI from the 6-Sep release is shown below. Needed to get C-Kermit 6(192) to run on my Vax/VMS system with VmSV5.5-2 and VAX C V3.1.*** $ker:ckermit.ini;-1--- $ker:ckermit.ini;***************** 680,686    ; In VMS and OpenVMS, allow for system-wide site customizations  ! if equal "\v(system)" "VMS" {      xif exist CKERMIT_INI:CKERMIT.SYS {  	echo Executing CKERMIT_INI:CKERMIT.SYS  	take CKERMIT_INI:CKERMIT.SYS--- 680,686 -----    ; In VMS and OpenVMS, allow for system-wide site customizations  ! xif equal "\v(system)" "VMS" {      xif exist CKERMIT_INI:CKERMIT.SYS {  	echo Executing CKERMIT_INI:CKERMIT.SYS  	take CKERMIT_INI:CKERMIT.SYSMIke Freeman                    | Internet: freeman@watsun.cc.columbia.eduAmateur Radio Calsign: K7UIJ    | */ PGP Public Key Available */____________________X-Patch-Number: 0004Date: Thu, 5 Dec 1996 15:20:00 ESTFrom: Frank da Cruz <fdc@columbia.edu>Subject: C-Kermit 6.0 can't TELNET on VAX/VMS with UCX 2.0PROBLEM:On VAX/VMS systems with early versions of DEC TCP/IP (UCX), "set host" and"telnet" commands might fail with "Connection refused", even though the system(UCX) TELNET program to the same host works correctly.DIAGNOSIS:If you don't specify a port, Kermit substitutes the service name "telnet" andthen asks UCX to look it up; similary, if you specify a port by name, ratherthan number, Kermit asks UCX to look it up.On VAX/VMS with DEC TCP/IP UCX 2.0, 2.0A, 2.0B, or 2.0C, the getservbyname()function fails to return the port number in network byte order as it should,and instead returns the number with its bytes swapped (e.g. 5888 instead of23).  Then Kermit tries to connect to port 5888 on the host; most hosts willrefuse the connection; if they don't, you probably didn't reach a Telnet portanyway.This bug was fixed in UCX 2.0D and thereafter.  However, there is no way forKermit to know which version of UCX is being used.WORKAROUND:Specify the port number (not name) in your SET HOST or TELNET command, e.g.:  set host xyzcorp.com 23CURE:A new command:  SET TCP UCX-PORT-BUG { ON, OFF }It is OFF by default, so UCX versions of VMS C-Kermit will work with alllatter-day versions of UCX with no special effort.  But if you have an oldUCX system, and you tell C-Kermit to "set host" or "telnet" and it says"Connection refused", tell it to SET TCP UCX-PORT-BUG ON and try again.  Ifthis works, then put this command into your (or the system-wide) CKERMIT.INIfile.  The following patch adds this command to VMS versions of C-Kermit thatwere built for UCX support.  It has already been applied to the CKVV55-UCX20binary in the Kermit archive.PATCH:*** /w/pub/ftp/kermit/f/ckcnet.c	Wed Nov 27 19:54:46 1996--- ./ckcnet.c	Wed Dec  4 17:14:41 1996****************** 1,4 ****! char *cknetv = "Network support, 6.0.078, 6 Sep 1996";    /*  C K C N E T  --  Network support  */  --- 1,4 ----! char *cknetv = "Network support, 6.0.079, 4 Dec 1996";    /*  C K C N E T  --  Network support  */  ****************** 960,965 ****--- 960,967 ----  extern VOID C$$SOCK_TRANSLATE();  #endif /* CK_ANSIC */  + int ucx_port_bug = 0;			/* Explained below */+   struct servent *  my_getservbyname (service, proto) char *service, *proto; {      static struct servent sent;****************** 1007,1035 ****  	C$$SOCK_TRANSLATE(&s.sb.st[0]);  	return NULL;      }-     /* sent.s_port is returned by UCX in network byte order. */-     /* Calling htons here swaps the bytes, which ruins everything. */- -     /* Oh yeah?  WHICH VERSION of UCX???  Let's try this... */- - #ifndef __alpha /* Maybe it should be __DECC, or some version thereof... */  /*!   Hunter says: "In fact, the "#ifndef __alpha" isn't even needed, since!   my_getservbyname() isn't included if "__DECC" is defined, and that's!   always defined on Alpha."  But if it doesn't hurt either, better not risk!   taking it out.  */! #ifndef TCPWARE! #define DO_HTONS! #endif /* TCPWARE */! #endif /* __alpha */! ! #ifdef DO_HTONS      sent.s_port = htons(sent.s_port);!     debug(F111,"UCX getservbyname","port",ntohs(sent.s_port));! #else!     debug(F111,"UCX getservbyname","port",sent.s_port);! #endif /* DO_HTONS */      return &sent;  }  #endif /* __DECC */--- 1009,1028 ----  	C$$SOCK_TRANSLATE(&s.sb.st[0]);  	return NULL;      }  /*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -