commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject cvs commit: jakarta-commons/daemon/src/native/unix/native jsvc-unix.c
Date Fri, 26 Sep 2003 19:03:11 GMT
jfclere     2003/09/26 12:03:10

  Modified:    daemon/src/native/unix/native jsvc-unix.c
  Log:
  PR 23240. Thanks to Daniel Resare.
  
  Revision  Changes    Path
  1.5       +4 -4      jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c
  
  Index: jsvc-unix.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jsvc-unix.c	26 Sep 2003 17:06:58 -0000	1.4
  +++ jsvc-unix.c	26 Sep 2003 19:03:10 -0000	1.5
  @@ -375,7 +375,7 @@
       freopen("/dev/null", "r", stdin); 
   
       /* make sure the debug goes out */
  -    if (log_debug_flag==true)
  +    if (log_debug_flag==true && strcmp(errfile,"/dev/null") == 0)
         return;
   
       /* Handle malicious case here */
  @@ -383,11 +383,11 @@
         outfile="/dev/null";
       }
       if(strcmp(outfile, "&2") != 0) {
  -      freopen(outfile, "w", stdout);
  +      freopen(outfile, "a", stdout);
       }
   
       if(strcmp(errfile,"&1") != 0) {
  -      freopen(errfile, "w", stderr);
  +      freopen(errfile, "a", stderr);
       } else {
         close(2);
         dup(1);
  
  
  

Mime
View raw message