diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/session.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c index 653a3d9c02..4ede1d9a68 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -89,7 +89,14 @@ BOOL session_claim(uint16 vuid) } fstrcpy(sessionid.username, vuser->user.unix_name); +#if WITH_UTMP fstrcpy(sessionid.hostname, lp_utmp_hostname()); +#else + { + extern fstring remote_machine; + fstrcpy(sessionid.hostname, remote_machine); + } +#endif slprintf(sessionid.id_str, sizeof(sessionid.id_str)-1, SESSION_TEMPLATE, i); sessionid.id_num = i; sessionid.pid = pid; |