notify: Fix ordering of events in notifyd
authorShilpa Krishnareddy <skrishnareddy@panzura.com>
Tue, 25 Apr 2017 14:59:45 +0000 (16:59 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 28 Apr 2017 07:12:27 +0000 (09:12 +0200)
commit6915ad57efb12c7a6802c551ba36ea2732646b46
tree329536691303f6120c7e141dd8590e646ba54ffb
parent9602cd0b5373aacc22c262b04b828b93cadf6df5
notify: Fix ordering of events in notifyd

In notifyd_trigger_parser() while initializing notify_event_msg values from
notify_trigger_msg, 'when' value is ignored. So the smbd process does not get
correct 'when' value and this is causing issues during qsort in
notify_marshall_changes(). Because of this issue, smb2.notify.dir test was
failing.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12756
Signed-off-by: Shilpa Krishnareddy <skrishnareddy@panzura.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Apr 26 17:02:58 CEST 2017 on sn-devel-144

(cherry picked from commit 5701880655c8a82b6d533c7c2e131cc803e7570b)
source3/smbd/notifyd/notifyd.c