From: Björn Jacke Date: Sun, 6 Jan 2019 20:35:14 +0000 (+0100) Subject: s3/smbd: fix utmp hostname logging on Solaris X-Git-Tag: talloc-2.1.15~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7643ee2ea857cfbf727f9bf03f9e3e8cddf84a21;p=thirdparty%2Fsamba.git s3/smbd: fix utmp hostname logging on Solaris BUG: https://bugzilla.samba.org/show_bug.cgi?id=2489 Signed-off-by: Bjoern Jacke Reviewed-by: Stefan Metzmacher --- 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