s3/smbd: fix utmp hostname logging on Solaris
authorBjörn Jacke <bj@sernet.de>
Sun, 6 Jan 2019 20:35:14 +0000 (21:35 +0100)
committerBjoern Jacke <bjacke@samba.org>
Thu, 10 Jan 2019 21:46:11 +0000 (22:46 +0100)
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>
source3/smbd/utmp.c

index cdbcc28..4327301 100644 (file)
@@ -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