We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a9f01 commit 78d1228Copy full SHA for 78d1228
sapi/litespeed/lsapilib.c
@@ -3131,10 +3131,20 @@ static int lsapi_initSuEXEC()
3131
if ( !s_defaultUid || !s_defaultGid )
3132
{
3133
pw = getpwnam( "nobody" );
3134
- if ( !s_defaultUid )
3135
- s_defaultUid = pw->pw_uid;
3136
- if ( !s_defaultGid )
3137
- s_defaultGid = pw->pw_gid;
+ if ( pw )
+ {
+ if ( !s_defaultUid )
+ s_defaultUid = pw->pw_uid;
3138
+ if ( !s_defaultGid )
3139
+ s_defaultGid = pw->pw_gid;
3140
+ }
3141
+ else
3142
3143
3144
+ s_defaultUid = 10000;
3145
3146
+ s_defaultGid = 10000;
3147
3148
}
3149
return 0;
3150
0 commit comments