mirror of
https://github.com/postgres/postgres.git
synced 2025-05-18 17:41:14 +03:00
Fix getpwuid_r call:
*result = getpwuid_r(uid, resultbuf, buffer, buflen);
This commit is contained in:
parent
f2cc5330cc
commit
b96509a3f3
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Id: thread.c,v 1.12.2.4 2004/03/20 15:39:40 momjian Exp $
|
* $Id: thread.c,v 1.12.2.5 2004/03/23 02:04:33 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -116,7 +116,7 @@ pqGetpwuid(uid_t uid, struct passwd *resultbuf, char *buffer,
|
|||||||
* Early POSIX draft of getpwuid_r() returns 'struct passwd *'.
|
* Early POSIX draft of getpwuid_r() returns 'struct passwd *'.
|
||||||
* getpwuid_r(uid, resultbuf, buffer, buflen)
|
* getpwuid_r(uid, resultbuf, buffer, buflen)
|
||||||
*/
|
*/
|
||||||
result = getpwuid_r(uid, resultbuf, buffer, buflen);
|
*result = getpwuid_r(uid, resultbuf, buffer, buflen);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user