httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-2.0/src/modules/standard mod_rewrite.c
Date Fri, 07 Jan 2000 15:50:42 GMT
rbb         00/01/07 07:50:42

  Modified:    src/modules/standard mod_rewrite.c
  Log:
  Fix mod_rewrite to work with the new APR stat structure.
  Submitted by:  Paul Reder
  Reviewed by:	Ryan Bloom
  
  Revision  Changes    Path
  1.9       +4 -4      apache-2.0/src/modules/standard/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_rewrite.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- mod_rewrite.c	2000/01/04 19:01:04	1.8
  +++ mod_rewrite.c	2000/01/07 15:50:40	1.9
  @@ -3762,8 +3762,8 @@
       /* file stuff */
       else if (strcasecmp(var, "SCRIPT_USER") == 0) {
           result = "<unknown>";
  -        if (r->finfo.st_mode != 0) {
  -            if ((pw = getpwuid(r->finfo.st_uid)) != NULL) {
  +        if (r->finfo.protection != 0) {
  +            if ((pw = getpwuid(r->finfo.user)) != NULL) {
                   result = pw->pw_name;
               }
           }
  @@ -3777,8 +3777,8 @@
       }
       else if (strcasecmp(var, "SCRIPT_GROUP") == 0) {
           result = "<unknown>";
  -        if (r->finfo.st_mode != 0) {
  -            if ((gr = getgrgid(r->finfo.st_gid)) != NULL) {
  +        if (r->finfo.protection != 0) {
  +            if ((gr = getgrgid(r->finfo.group)) != NULL) {
                   result = gr->gr_name;
               }
           }
  
  
  

Mime
View raw message