summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2016-12-09 10:35:21 +0900
committerKoichiro IWAO <meta@vmeta.jp>2016-12-09 10:35:21 +0900
commit35bc7c1d65732518186c874ff5425c7c561a0a24 (patch)
treeef256ab7fdc20af73b78c4109d6cc474598ebbda
parent731d4be6700beffa7f9710e96285707cec27a535 (diff)
downloadxrdp-proprietary-35bc7c1d65732518186c874ff5425c7c561a0a24.tar.gz
xrdp-proprietary-35bc7c1d65732518186c874ff5425c7c561a0a24.zip
sesman: unbreak FreeBSD build after #523
-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());
}
}