summaryrefslogtreecommitdiff
path: root/passwd
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2002-05-10 20:28:32 +0000
committerJeff Trawick <trawick@apache.org>2002-05-10 20:28:32 +0000
commit51b1051ed929ab69bdbbf574fee11447c82c80a9 (patch)
treee2f6bf16139a72fe9170387c015f90f2a96631df /passwd
parent2f64ef0995d3a1905e33e39e2062690af4b5916b (diff)
downloadapr-51b1051ed929ab69bdbbf574fee11447c82c80a9.tar.gz
add another platform to a comment listing some platforms where
crypt() is thread-safe git-svn-id: https://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);