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 22:04:21 GMT
manoj       99/11/04 14:04:19

  Modified:    src/lib/apr/file_io/unix open.c
  Log:
  Change ap_open's behavior when using APR_OS_DEFAULT permissions. My
  Linux man pages say that you must provide permissions to use when
  creating a file. We weren't doing so, and non APR_BUFFERED files were
  created with garbage permissions (01254 in my case!). This patch tells
  open() to use 0777 permissions as the default.
  
  Revision  Changes    Path
  1.21      +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.20
  retrieving revision 1.21
  diff -u -d -u -r1.20 -r1.21
  --- open.c	1999/11/04 21:59:17	1.20
  +++ open.c	1999/11/04 22:04:16	1.21
  @@ -163,7 +163,7 @@
       }
       else { 
           if (perm == APR_OS_DEFAULT) {
  -            (*new)->filedes = open(fname, oflags);
  +            (*new)->filedes = open(fname, oflags, 0777);
           }
           else {
               (*new)->filedes = open(fname, oflags, get_fileperms(perm));
  
  
  

Mime
View raw message