|
|
@ -161,6 +161,7 @@ for user %s denied", username);
|
|
|
|
|
|
|
|
|
|
|
|
g_get_current_dir(cur_dir, 255);
|
|
|
|
g_get_current_dir(cur_dir, 255);
|
|
|
|
display = 10;
|
|
|
|
display = 10;
|
|
|
|
|
|
|
|
|
|
|
|
/*while (x_server_running(display) && display < 50)*/
|
|
|
|
/*while (x_server_running(display) && display < 50)*/
|
|
|
|
/* we search for a free display up to max_sessions */
|
|
|
|
/* we search for a free display up to max_sessions */
|
|
|
|
/* we should need no more displays than this */
|
|
|
|
/* we should need no more displays than this */
|
|
|
@ -170,7 +171,7 @@ for user %s denied", username);
|
|
|
|
while (x_server_running(display))
|
|
|
|
while (x_server_running(display))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
display++;
|
|
|
|
display++;
|
|
|
|
if ((display - 10) > g_cfg.sess.max_sessions || display >= 50)
|
|
|
|
if (((display - 10) > g_cfg.sess.max_sessions) || (display >= 50))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|