summaryrefslogtreecommitdiffstats
path: root/sesman/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/session.c')
-rw-r--r--sesman/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/session.c b/sesman/session.c
index 4b059fbc..783665cf 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -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());
}
}