summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-08 16:05:12 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-08 16:05:12 +0000
commit910dc50cceb7f4981cf5331696b926072c916903 (patch)
tree6934c0a3f53eb86645065777e941163ef92b58a1 /user
parent5cc4a0a95a64f8c878695ad3ea62b9140c8bfe39 (diff)
downloadlibapr-910dc50cceb7f4981cf5331696b926072c916903.tar.gz
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. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61351 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'user')
-rw-r--r--user/unix/userinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/unix/userinfo.c b/user/unix/userinfo.c
index dca8e1cf9..ac0b386fb 100644
--- a/user/unix/userinfo.c
+++ b/user/unix/userinfo.c
@@ -139,7 +139,11 @@ APR_DECLARE(apr_status_t) apr_get_user_passwd(char **passwd,
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;
}