Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 58200 invoked by uid 500); 8 Mar 2001 16:05:38 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 58092 invoked by uid 1121); 8 Mar 2001 16:05:22 -0000 Date: 8 Mar 2001 16:05:22 -0000 Message-ID: <20010308160522.58085.qmail@apache.org> From: trawick@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/user/unix userinfo.c 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; }