From 5688e459794418b846ea88ed3f15210613c8c1a6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 23 Mar 2004 02:03:55 +0000 Subject: [PATCH] Fix getpwuid_r call: *result = getpwuid_r(uid, resultbuf, buffer, buflen); --- src/port/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/port/thread.c b/src/port/thread.c index a835f8778a..b814bb8359 100644 --- a/src/port/thread.c +++ b/src/port/thread.c @@ -7,7 +7,7 @@ * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/port/thread.c,v 1.18 2004/03/20 15:39:27 momjian Exp $ + * $PostgreSQL: pgsql/src/port/thread.c,v 1.19 2004/03/23 02:03:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -106,7 +106,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 -- 2.40.0