httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/dav/fs repos.c
Date Sun, 14 Mar 2004 16:13:20 GMT
nd          2004/03/14 08:13:20

  Modified:    modules/dav/fs repos.c
  Log:
  repos.c: In function `dav_fs_copymove_file':
  repos.c:315: warning: `perms' might be used uninitialized in this function
  
  Revision  Changes    Path
  1.82      +3 -4      httpd-2.0/modules/dav/fs/repos.c
  
  Index: repos.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/fs/repos.c,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -u -r1.81 -r1.82
  --- repos.c	13 Mar 2004 12:56:47 -0000	1.81
  +++ repos.c	14 Mar 2004 16:13:20 -0000	1.82
  @@ -320,15 +320,14 @@
       /* Determine permissions to use for destination */
       if (src_finfo && src_finfo->valid & APR_FINFO_PROT
           && src_finfo->protection & APR_UEXECUTE) {
  +        perms = src_finfo->protection;
  +
           if (dst_finfo != NULL) {
               /* chmod it if it already exist */
  -            if (apr_file_perms_set(dst, src_finfo->protection)) {
  +            if (apr_file_perms_set(dst, perms)) {
                   return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,
                                        "Could not set permissions on destination");
               }
  -        } 
  -        else {
  -            perms = src_finfo->protection;
           }
       } 
       else {
  
  
  

Mime
View raw message