From: Bruce Momjian Date: Tue, 23 Mar 2004 02:04:33 +0000 (+0000) Subject: Fix getpwuid_r call: X-Git-Tag: REL7_4_3~59 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b96509a3f320776151188c97187fdbde4373ad1f;p=users%2Fc2main%2Fpostgres.git Fix getpwuid_r call: *result = getpwuid_r(uid, resultbuf, buffer, buflen); --- diff --git a/src/port/thread.c b/src/port/thread.c index 2c8efd95d2..aad9d719b4 100644 --- a/src/port/thread.c +++ b/src/port/thread.c @@ -7,7 +7,7 @@ * * 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 *'. * getpwuid_r(uid, resultbuf, buffer, buflen) */ - result = getpwuid_r(uid, resultbuf, buffer, buflen); + *result = getpwuid_r(uid, resultbuf, buffer, buflen); #endif #else