commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1411645 - /commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c
Date Tue, 20 Nov 2012 12:44:37 GMT
Author: mturk
Date: Tue Nov 20 12:44:37 2012
New Revision: 1411645

URL: http://svn.apache.org/viewvc?rev=1411645&view=rev
Log:
Create intermediate directories for log files as well

Modified:
    commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c

Modified: commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c?rev=1411645&r1=1411644&r2=1411645&view=diff
==============================================================================
--- commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c (original)
+++ commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c Tue Nov 20 12:44:37
2012
@@ -915,6 +915,7 @@ static FILE *loc_freopen(char *outfile, 
 {
     FILE *ftest;
 
+    mkdir2(outfile, S_IRWXU);
     ftest = fopen(outfile, mode);
     if (ftest == NULL) {
         fprintf(stderr, "Unable to redirect to %s\n", outfile);



Mime
View raw message