summaryrefslogtreecommitdiff
path: root/passwd
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-05-10 20:28:32 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2002-05-10 20:28:32 +0000
commit152527c1a461d39bc17481ca239be873b950cf0b (patch)
treee2f6bf16139a72fe9170387c015f90f2a96631df /passwd
parent59e107a68ec89ab9540337a2511fd095291ca31f (diff)
downloadlibapr-152527c1a461d39bc17481ca239be873b950cf0b.tar.gz
add another platform to a comment listing some platforms where
crypt() is thread-safe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63386 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-rw-r--r--passwd/apr_md5.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/passwd/apr_md5.c b/passwd/apr_md5.c
index 76a16b494..4c9ac4969 100644
--- a/passwd/apr_md5.c
+++ b/passwd/apr_md5.c
@@ -718,8 +718,9 @@ APR_DECLARE(apr_status_t) apr_password_validate(const char *passwd,
#else
/* XXX if this is a threaded build, we should hold a mutex
* around the next two lines... but note that on some
- * platforms (e.g., Solaris, HP-UX) crypt() returns a
- * pointer to thread-specific data
+ * platforms (e.g., Solaris, HP-UX, OS/390) crypt()
+ * returns a pointer to thread-specific data so we don't
+ * want a mutex on those platforms
*/
crypt_pw = crypt(passwd, hash);
apr_cpystrn(sample, crypt_pw, sizeof(sample) - 1);