notifyd: Fix SIGBUS on sparc
authorJiří Šašek <jiri.sasek@oracle.com>
Thu, 6 Dec 2018 13:10:53 +0000 (14:10 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Mar 2019 19:29:10 +0000 (19:29 +0000)
commita2f740691a77d0d7a141d8bd1ab25d75e946b811
tree6520769ef58715457bb00f703083074a5701736d
parent97fcdfb58a751046541c370d68d6c52114fd702b
notifyd: Fix SIGBUS on sparc

Problem is the structure "struct notify_instance" can lay in message buffer on
address not dividable by 8 but this structure begins by uint_64 (secs in
time-stamp). Structure should be re-packed to standalone buffer before the use.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13704
Signed-off-by: jiri.sasek@oracle.com
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/notifyd/notifyd.c