smbd: Avoid sending 0-sized keys to dbwrap
authorVolker Lendecke <vl@samba.org>
Mon, 25 Mar 2013 13:52:24 +0000 (14:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Mar 2013 09:11:41 +0000 (10:11 +0100)
commitd4ebeeb78865c6a20a85437b82a1302921f3d1fe
treecbd07e747ad36f2459691490d43075beeb82e9e6
parentbbb4068c933ecc043025633a13c62bf04eaf6d49
smbd: Avoid sending 0-sized keys to dbwrap

Start the notification one level below /. Sharing and notifying / for changes
is broken at this moment anyway. When sharing / and someone wants to get
notified for changes under /usr, we store "//usr" as the notify_index key. So
this patch does not break anything that is not broken today, and it avoids a
bogus call to dbwrap_parse_records.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/notify_internal.c