httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: apache-1.3/src/modules/standard mod_auth.c
Date Tue, 11 Sep 2001 03:29:11 GMT
coar        01/09/10 20:29:11

  Modified:    .        STATUS
               src      CHANGES
               src/modules/standard mod_auth.c
  Log:
  	get*id() don't work on Windows; thanks to OtherBill for pointing
  	it out.
  
  Revision  Changes    Path
  1.953     +1 -3      apache-1.3/STATUS
  
  Index: STATUS
  ===================================================================
  RCS file: /home/cvs/apache-1.3/STATUS,v
  retrieving revision 1.952
  retrieving revision 1.953
  diff -u -u -r1.952 -r1.953
  --- STATUS	2001/09/11 03:11:57	1.952
  +++ STATUS	2001/09/11 03:29:10	1.953
  @@ -1,5 +1,5 @@
   APACHE 1.3 STATUS:						-*-text-*-
  -  Last modified at [$Date: 2001/09/11 03:11:57 $]
  +  Last modified at [$Date: 2001/09/11 03:29:10 $]
   
   Release:
   
  @@ -35,8 +35,6 @@
       2.0  : In alpha development, see httpd-2.0 repository
   
   RELEASE SHOWSTOPPERS:
  -
  -    mod_auth is now broken on win32, due to the getpwuid changes.
   
       ab is broken on many platforms.  Dirk has offered patch, it does not
       apply cleanly, he has offered to clean this up.
  
  
  
  1.1706    +2 -1      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1705
  retrieving revision 1.1706
  diff -u -u -r1.1705 -r1.1706
  --- CHANGES	2001/09/11 03:11:16	1.1705
  +++ CHANGES	2001/09/11 03:29:10	1.1706
  @@ -8,7 +8,8 @@
        username (from the appropriate AuthUserFile database) matches
        the username of the UID that owns the document (and equivalent
        checking for file GID and user's membership in AuthGroupFile).
  -     See the mod_auth documentation for examples. [Ken Coar]
  +     See the mod_auth documentation for examples.  (Not supported
  +     on Windows.)  [Ken Coar]
   
     *) Addition of the AcceptMutex runtime directive. The accept mutex
        method is now runtime controllable. The suite of available methods
  
  
  
  1.53      +12 -0     apache-1.3/src/modules/standard/mod_auth.c
  
  Index: mod_auth.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_auth.c,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -u -r1.52 -r1.53
  --- mod_auth.c	2001/09/10 16:45:21	1.52
  +++ mod_auth.c	2001/09/11 03:29:11	1.53
  @@ -278,6 +278,11 @@
            * owner of the document.
            */
   	if (strcmp(w, "file-owner") == 0) {
  +#if defined(WIN32)
  +            ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERROR, r,
  +                          "'Require file-user' not supported on Windows");
  +            return HTTP_UNAUTHORIZED;
  +#else
               struct passwd *pwent;
               ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, r,
                             "checking for 'owner' access for file '%s'",
  @@ -305,8 +310,14 @@
                       return HTTP_UNAUTHORIZED;
                   }
               }
  +#endif
           }
   	if (strcmp(w, "file-group") == 0) {
  +#if defined(WIN32)
  +            ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERROR, r,
  +                          "'Require file-group' not supported on Windows");
  +            return HTTP_UNAUTHORIZED;
  +#else
               struct group *grent;
               if (sec->auth_grpfile == NULL) {
                   ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, r,
  @@ -349,6 +360,7 @@
                       return HTTP_UNAUTHORIZED;
                   }
               }
  +#endif
           }
   	if (strcmp(w, "user") == 0) {
   	    while (t[0] != '\0') {
  
  
  

Mime
View raw message