summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2019-01-06 21:35:14 +0100
committerBjoern Jacke <bjacke@samba.org>2019-01-10 22:46:11 +0100
commit7643ee2ea857cfbf727f9bf03f9e3e8cddf84a21 (patch)
tree4162bf973e3c28ab894e8d60e0d7aae3701e6a0c /source3
parentc53e8de43ce1c86111993f791e5440a656dc75a8 (diff)
downloadsamba-7643ee2ea857cfbf727f9bf03f9e3e8cddf84a21.tar.gz
s3/smbd: fix utmp hostname logging on Solaris
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2489 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/utmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c
index cdbcc28cce6..4327301e3b1 100644
--- a/source3/smbd/utmp.c
+++ b/source3/smbd/utmp.c
@@ -429,7 +429,7 @@ static void sys_utmp_update(struct utmp *u, const char *hostname, bool claim)
else
ux.ut_syslen = 0;
#endif
-#if defined(HAVE_UT_UT_HOST)
+#if defined(HAVE_UX_UT_HOST)
utmp_strcpy(ux.ut_host, hostname, sizeof(ux.ut_host));
#endif