httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src CHANGES
Date Sun, 23 Apr 2000 12:24:11 GMT
trawick     00/04/23 05:24:11

  Modified:    src/modules/standard mod_log_config.c
               src/lib/apr/file_io/unix open.c
               src      CHANGES
  Log:
  ap_open(..,APR_OS_DEFAULT,..) uses perms 0666 instead of 0777 on
  Unix; access_log and error_log now created with these perms; non-
  Unix is unaffected
  
  Revision  Changes    Path
  1.20      +2 -7      apache-2.0/src/modules/standard/mod_log_config.c
  
  Index: mod_log_config.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_log_config.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- mod_log_config.c	2000/04/14 15:59:09	1.19
  +++ mod_log_config.c	2000/04/23 12:24:10	1.20
  @@ -183,12 +183,7 @@
   module MODULE_VAR_EXPORT config_log_module;
   
   static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE);
  -#if defined(OS2) || defined(WIN32)
  -/* OS/2 dosen't support users and groups */
  -static mode_t xfer_mode = (S_IREAD | S_IWRITE);
  -#else
  -static mode_t xfer_mode = (APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD);
  -#endif
  +static ap_fileperms_t xfer_perms = APR_OS_DEFAULT;
   
   /* POSIX.1 defines PIPE_BUF as the maximum number of bytes that is
    * guaranteed to be atomic when writing a pipe.  And PIPE_BUF >= 512
  @@ -1028,7 +1023,7 @@
       }
       else {
           const char *fname = ap_server_root_relative(p, cls->fname);
  -        if ((status = ap_open(&cls->log_fd, fname, xfer_flags, xfer_mode, p)) 
  +        if ((status = ap_open(&cls->log_fd, fname, xfer_flags, xfer_perms, p)) 
               != APR_SUCCESS) {
               ap_log_error(APLOG_MARK, APLOG_ERR, status, s,
                            "could not open transfer log file %s.", fname);
  
  
  
  1.51      +1 -1      apache-2.0/src/lib/apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/open.c,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- open.c	2000/04/22 06:32:59	1.50
  +++ open.c	2000/04/23 12:24:11	1.51
  @@ -130,7 +130,7 @@
       }
       
       if (perm == APR_OS_DEFAULT) {
  -        (*new)->filedes = open(fname, oflags, 0777);
  +        (*new)->filedes = open(fname, oflags, 0666);
       }
       else {
           (*new)->filedes = open(fname, oflags, ap_unix_get_fileperms(perm));
  
  
  
  1.79      +4 -0      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -r1.78 -r1.79
  --- CHANGES	2000/04/23 02:32:56	1.78
  +++ CHANGES	2000/04/23 12:24:11	1.79
  @@ -1,5 +1,9 @@
   Changes with Apache 2.0a3-dev
   
  +  *) ap_open(..,APR_OS_DEFAULT,..) uses perms 0666 instead of 0777 on
  +     Unix; access_log and error_log now created with these perms; non-
  +     Unix is unaffected [Jeff Trawick]
  +     
     *) Finished move of ap_md5 routines to apr_md5.  Removed ap_md5.h.
        Replaced more magic numbers with MD5_DIGESTSIZE.
        [William Rowe, Roy Fielding]
  
  
  

Mime
View raw message