httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/unix open.c
Date Thu, 04 Nov 1999 21:59:24 GMT
manoj       99/11/04 13:59:23

  Modified:    src/lib/apr/file_io/unix open.c
  Log:
  Save a little bit of work when opening a file with default permissions.
  
  Revision  Changes    Path
  1.20      +1 -2      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.19
  retrieving revision 1.20
  diff -u -d -u -r1.19 -r1.20
  --- open.c	1999/11/01 04:24:08	1.19
  +++ open.c	1999/11/04 21:59:17	1.20
  @@ -107,7 +107,6 @@
   ap_status_t ap_open(struct file_t **new, const char *fname, ap_int32_t flag,  ap_fileperms_t
perm, ap_context_t *cont)
   {
       int oflags = 0;
  -    mode_t mode = get_fileperms(perm);    
       char *buf_oflags;
   
       (*new) = (struct file_t *)ap_palloc(cont, sizeof(struct file_t));
  @@ -167,7 +166,7 @@
               (*new)->filedes = open(fname, oflags);
           }
           else {
  -            (*new)->filedes = open(fname, oflags, mode);
  +            (*new)->filedes = open(fname, oflags, get_fileperms(perm));
           }    
       }
   
  
  
  

Mime
View raw message