apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/user/unix userinfo.c
Date Thu, 08 Mar 2001 16:05:22 GMT
trawick     01/03/08 08:05:19

  Modified:    user/unix userinfo.c
  Log:
  Keep userinfo.c compiling on OS/390, where there is no pw_passwd field
  in struct passwd.  The affected function is due to be replaced soon
  anyway.
  
  Revision  Changes    Path
  1.11      +4 -0      apr/user/unix/userinfo.c
  
  Index: userinfo.c
  ===================================================================
  RCS file: /home/cvs/apr/user/unix/userinfo.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- userinfo.c	2001/03/08 00:35:37	1.10
  +++ userinfo.c	2001/03/08 16:05:12	1.11
  @@ -139,7 +139,11 @@
       if ((rv = getpwnam_safe(username, &pw)) != APR_SUCCESS)
           return rv;
   
  +#if defined(__MVS__) /* silly hack, but this function will be replaced soon anyway */
  +    *passwd = "x"; /* same as many Linux (and Solaris and more) boxes these days */
  +#else
       *passwd = apr_pstrdup(p, pw->pw_passwd);
  +#endif
   
       return APR_SUCCESS;
   }
  
  
  

Mime
View raw message