apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/threadproc/os2 proc.c
Date Thu, 23 Aug 2001 16:20:41 GMT
bjh         01/08/23 09:20:41

  Modified:    threadproc/os2 proc.c
  Log:
  \n removal, needed now OS/2 apr_file_gets() leaves them on.
  
  Revision  Changes    Path
  1.43      +5 -0      apr/threadproc/os2/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/os2/proc.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- proc.c	2001/08/10 21:04:48	1.42
  +++ proc.c	2001/08/23 16:20:41	1.43
  @@ -360,6 +360,11 @@
   
               if (status == APR_SUCCESS) {
                   if (interpreter[0] == '#' && interpreter[1] == '!') {
  +                    /* delete newline */
  +                    if (interpreter[0]) {
  +                        interpreter[strlen(interpreter) - 1] = '\0';
  +                    }
  +
                       if (interpreter[2] != '/' && interpreter[2] != '\\' &&
interpreter[3] != ':') {
                           char buffer[300];
   
  
  
  

Mime
View raw message