mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Fixed Buf #68812 Unchecked return value.
This commit is contained in:
parent
b861a4a4d2
commit
eb15ec385e
1 changed files with 14 additions and 4 deletions
|
@ -3131,10 +3131,20 @@ static int lsapi_initSuEXEC()
|
||||||
if ( !s_defaultUid || !s_defaultGid )
|
if ( !s_defaultUid || !s_defaultGid )
|
||||||
{
|
{
|
||||||
pw = getpwnam( "nobody" );
|
pw = getpwnam( "nobody" );
|
||||||
if ( !s_defaultUid )
|
if ( pw )
|
||||||
s_defaultUid = pw->pw_uid;
|
{
|
||||||
if ( !s_defaultGid )
|
if ( !s_defaultUid )
|
||||||
s_defaultGid = pw->pw_gid;
|
s_defaultUid = pw->pw_uid;
|
||||||
|
if ( !s_defaultGid )
|
||||||
|
s_defaultGid = pw->pw_gid;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( !s_defaultUid )
|
||||||
|
s_defaultUid = 10000;
|
||||||
|
if ( !s_defaultGid )
|
||||||
|
s_defaultGid = 10000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue