From e129db422b7e2bf9a567ed4b778e7ca326e14a4b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 21 Apr 2001 07:43:54 +0000 Subject: Fixed compile bug when using --with-pam but not --with-utmp. Jeremy. (This used to be commit 1e098744677e022547707ebff500fb4515402871) --- source3/smbd/session.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/smbd') 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; -- cgit