You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by da...@apache.org on 2001/02/06 00:23:17 UTC

cvs commit: jakarta-tomcat/src/native/mod_jk/netscape jk_nsapi_plugin.c

danmil      01/02/05 15:23:17

  Modified:    src/native/mod_jk/netscape jk_nsapi_plugin.c
  Log:
  Fix a problem when submitting dating from a form with a POST request.
  NetWare 5.1 doesn't have some of the assumed functionality
  (netbuf_getbytes).
  
  Submitted by: Mike Anderson (MMANDERS@novell.com)
  
  Revision  Changes    Path
  1.2       +4 -2      jakarta-tomcat/src/native/mod_jk/netscape/jk_nsapi_plugin.c
  
  Index: jk_nsapi_plugin.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/netscape/jk_nsapi_plugin.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jk_nsapi_plugin.c	2000/08/26 02:03:53	1.1
  +++ jk_nsapi_plugin.c	2001/02/05 23:23:16	1.2
  @@ -56,7 +56,7 @@
   /***************************************************************************
    * Description: NSAPI plugin for Netscape servers                          *
    * Author:      Gal Shachor <sh...@il.ibm.com>                           *
  - * Version:     $Revision: 1.1 $                                               *
  + * Version:     $Revision: 1.2 $                                               *
    ***************************************************************************/
   
   
  @@ -188,7 +188,9 @@
               unsigned i;
               netbuf *inbuf = p->sn->inbuf;
   
  -#ifdef netbuf_getbytes
  +/* Until we get a service pack for NW5.1 and earlier that has the latest */
  +/* Enterprise Server, we have to go through the else version of this code*/
  +#if defined(netbuf_getbytes) && !defined(NETWARE) 
               i = netbuf_getbytes(inbuf, b, l);
               if(NETBUF_EOF == i || NETBUF_ERROR == i) {
                   return JK_FALSE;