Skip to content

Commit 5688e45

Browse files
committed
Fix getpwuid_r call:
*result = getpwuid_r(uid, resultbuf, buffer, buflen);
1 parent 2e45c14 commit 5688e45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/port/thread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
99
*
10-
* $PostgreSQL: pgsql/src/port/thread.c,v 1.18 2004/03/20 15:39:27 momjian Exp $
10+
* $PostgreSQL: pgsql/src/port/thread.c,v 1.19 2004/03/23 02:03:55 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -106,7 +106,7 @@ pqGetpwuid(uid_t uid, struct passwd *resultbuf, char *buffer,
106106
* Early POSIX draft of getpwuid_r() returns 'struct passwd *'.
107107
* getpwuid_r(uid, resultbuf, buffer, buflen)
108108
*/
109-
result = getpwuid_r(uid, resultbuf, buffer, buflen);
109+
*result = getpwuid_r(uid, resultbuf, buffer, buflen);
110110
#endif
111111

112112
#else

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy