diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2014-07-13 00:18:40 +0200 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2014-07-13 00:27:22 +0200 |
commit | 763c51780c0830983ee75d66d516d65911b0e96a (patch) | |
tree | 8f1ec411866fae65e17631adca3f9f87dbc0caac /configure.ac | |
parent | 6c6ba59e6bc7c84d9d0f83273055a7448a0eea27 (diff) | |
download | curl-763c51780c0830983ee75d66d516d65911b0e96a.tar.gz |
netrc: fixed thread safety problem by using getpwuid_r if available
The old way using getpwuid could cause problems in programs that enable
reading from netrc files simultaneously in multiple threads.
Reported-by: David Woodhouse
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a06f0fd1f..e8d322a02 100644 --- a/configure.ac +++ b/configure.ac @@ -3033,6 +3033,7 @@ AC_CHECK_FUNCS([fork \ getppid \ getprotobyname \ getpwuid \ + getpwuid_r \ getrlimit \ gettimeofday \ if_nametoindex \ |