summaryrefslogtreecommitdiff
path: root/source3/smbd/connection.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-22 19:03:12 +0000
committerJeremy Allison <jra@samba.org>2000-03-22 19:03:12 +0000
commit8f1620125dcb9c29c223f4efb6485528ece70f11 (patch)
tree358b480ac6e0f7e80aace7701c7e2399dacb9d4b /source3/smbd/connection.c
parentc90a455f32ef8ab6eec6aaeb1fffeb00ce67fa2e (diff)
downloadsamba-8f1620125dcb9c29c223f4efb6485528ece70f11.tar.gz
samba-8f1620125dcb9c29c223f4efb6485528ece70f11.tar.bz2
samba-8f1620125dcb9c29c223f4efb6485528ece70f11.zip
acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.
include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy. (This used to be commit f02999dbf7971b4ea05050d7206205d7737a78b2)
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r--source3/smbd/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index 9a678ba88f..972ffa52dd 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -225,7 +225,9 @@ static void utmp_update(const pstring dirname, const struct utmp *u, const char
getutmpx(u, &ux);
if (host) {
+#if defined(HAVE_UX_UT_SYSLEN)
ux.ut_syslen = strlen(host);
+#endif /* defined(HAVE_UX_UT_SYSLEN) */
pstrcpy(ux.ut_host, host);
}