httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@hyperreal.org
Subject cvs commit: apache-1.3/src/main rfc1413.c
Date Fri, 30 Jul 1999 13:42:26 GMT
martin      99/07/30 06:42:26

  Modified:    src/main rfc1413.c
  Log:
  Change for EBCDIC platforms (TPF and BS2000) to
  correctly deal with ASCII/EBCDIC conversions in "ident" query.
  
  (This is the most obvious bug so I commited it right away. -martin)
  
  Submitted by: David McCreedy <McCreedy@us.ibm.com>
  Reviewed by: Martin Kraemer
  
  Revision  Changes    Path
  1.28      +6 -0      apache-1.3/src/main/rfc1413.c
  
  Index: rfc1413.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/rfc1413.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- rfc1413.c	1999/01/01 19:04:53	1.27
  +++ rfc1413.c	1999/07/30 13:42:25	1.28
  @@ -147,6 +147,9 @@
   		ntohs(our_sin->sin_port));
   
       /* send query to server. Handle short write. */
  +#ifdef CHARSET_EBCDIC
  +    ebcdic2ascii(&buffer, &buffer, buflen);
  +#endif
       i = 0;
       while(i < strlen(buffer)) {
           int j;
  @@ -183,6 +186,9 @@
       }
   
   /* RFC1413_USERLEN = 512 */
  +#ifdef CHARSET_EBCDIC
  +    ascii2ebcdic(&buffer, &buffer, (size_t)i);
  +#endif
       if (sscanf(buffer, "%u , %u : USERID :%*[^:]:%512s", &rmt_port, &our_port,
   	       user) != 3 || ntohs(rmt_sin->sin_port) != rmt_port
   	|| ntohs(our_sin->sin_port) != our_port)
  
  
  

Mime
View raw message