Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8469a33

Browse files
committed
Add gp->gr_mem != NULL check for Solaris, per Seth Hettich
1 parent40b1403 commit8469a33

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/utils/init/findbe.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.24 2001/10/2917:55:41 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.25 2001/10/2918:06:54 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -103,7 +103,8 @@ ValidateBinary(char *path)
103103
if (pwp->pw_gid==buf.st_gid)
104104
++in_grp;
105105
elseif (pwp->pw_name&&
106-
(gp=getgrgid(buf.st_gid))!=NULL)
106+
(gp=getgrgid(buf.st_gid))!=NULL&&
107+
gp->gr_mem!=NULL)
107108
{
108109
for (i=0;gp->gr_mem[i];++i)
109110
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp