diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-21 07:44:25 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-21 07:44:25 +0000 |
commit | 23e2136ad431a7409a66a95ef2a0ad62d149f1d3 (patch) | |
tree | 5826c61f7ccc57ad2ed6650b75672108e151e73e | |
parent | aa00d1e27fb2c80756141abff2294d3f74bfc946 (diff) | |
download | samba-23e2136ad431a7409a66a95ef2a0ad62d149f1d3.tar.gz samba-23e2136ad431a7409a66a95ef2a0ad62d149f1d3.tar.xz samba-23e2136ad431a7409a66a95ef2a0ad62d149f1d3.zip |
Fixed compile bug when compiling --with-pam but not --with-utmp.
Jeremy.
-rw-r--r-- | source/smbd/session.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/smbd/session.c b/source/smbd/session.c index 653a3d9c027..4ede1d9a687 100644 --- a/source/smbd/session.c +++ b/source/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; |