rbb         01/09/24 09:03:27

  Modified:    file_io/unix mktemp.c
  Log:
  Convert from the hardcoded Unix file permissions to the APR file
  permissions
  Submitted by: Greg Stein
  
  Revision  Changes    Path
  1.9       +3 -2      apr/file_io/unix/mktemp.c
  
  Index: mktemp.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/mktemp.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- mktemp.c  2001/09/24 06:35:22     1.8
  +++ mktemp.c  2001/09/24 16:03:27     1.9
  @@ -129,12 +129,13 @@
                errno = 0;
                if (doopen) {
                        if ((rv = apr_file_open(&doopen, path, 
APR_CREATE|APR_EXCL|APR_READ|APR_WRITE, 
  -                                    0600, p)) == APR_SUCCESS)
  +                                    APR_UREAD | APR_UWRITE, p)) == 
APR_SUCCESS)
                                return(1);
                        if (errno != EEXIST)
                                return(0);
                } else if (domkdir) {
  -                     if (apr_dir_make(path, 0700, p) == 0)
  +                     if (apr_dir_make(path, 
  +                                APR_UREAD | APR_UWRITE | APR_UEXECUTE, p) == 
0)
                                return(1);
                        if (errno != EEXIST)
                                return(0);
  
  
  

Reply via email to