You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2012/11/20 13:44:37 UTC
svn commit: r1411645 -
/commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c
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);