apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r208880 - /apr/apr/branches/1.1.x/threadproc/os2/proc.c
Date Sun, 03 Jul 2005 03:55:01 GMT
Author: bjh
Date: Sat Jul  2 20:54:59 2005
New Revision: 208880

URL: http://svn.apache.org/viewcvs?rev=208880&view=rev
Log:
OS/2: Fix crash in apr_proc_create with non-shell type process creation where
the .exe extension is not given. Was trying to close an apr_file_t that had
failed to open, causing a segfault.

Backport from trunk of r208879

Modified:
    apr/apr/branches/1.1.x/threadproc/os2/proc.c

Modified: apr/apr/branches/1.1.x/threadproc/os2/proc.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.1.x/threadproc/os2/proc.c?rev=208880&r1=208879&r2=208880&view=diff
==============================================================================
--- apr/apr/branches/1.1.x/threadproc/os2/proc.c (original)
+++ apr/apr/branches/1.1.x/threadproc/os2/proc.c Sat Jul  2 20:54:59 2005
@@ -375,8 +375,9 @@
                     interpreter[0] = 0;
                 }
             }
+
+            apr_file_close(progfile);
         }
-        apr_file_close(progfile);
     }
 
     i = 0;



Mime
View raw message