sesman: unbreak FreeBSD build after #523

This commit is contained in:
Koichiro IWAO 2016-12-09 10:35:21 +09:00
parent 731d4be670
commit 35bc7c1d65

View File

@ -528,10 +528,10 @@ session_start_fork(tbus data, tui8 type, struct SCP_SESSION *s)
"setsid failed - pid %d", g_getpid());
}
if (g_setlogin(username) < 0)
if (g_setlogin(s->username) < 0)
{
log_message(LOG_LEVEL_ERROR,
"setlogin failed for user %s - pid %d", username,
"setlogin failed for user %s - pid %d", s->username,
g_getpid());
}
}