The branch, v4-5-test has been updated
via 5542648 s3: smbd: inotify_map_mask_to_filter incorrectly indexes an
array.
from bc62091 vfs_fruit: lp_case_sensitive() does not return a bool
https://git.samba.org/?p=samba.git;a=shortlog;h=v4-5-test
- Log -----------------------------------------------------------------
commit 554264827feb6ef738a9e119cedd03fe6c37180e
Author: Doug Nazar <[email protected]>
Date: Thu Apr 27 15:41:24 2017 -0700
s3: smbd: inotify_map_mask_to_filter incorrectly indexes an array.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12760
Signed-off-by: Doug Nazar <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
Reviewed-by: Christof Schmitt <[email protected]>
(cherry picked from commit a939db725ea81944532ba3b035da0d145bc3b62a)
Autobuild-User(v4-5-test): Karolin Seeger <[email protected]>
Autobuild-Date(v4-5-test): Tue May 2 13:54:40 CEST 2017 on sn-devel-144
-----------------------------------------------------------------------
Summary of changes:
source3/smbd/notify_inotify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Changeset truncated at 500 lines:
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c
index 3848dd6..74855a9 100644
--- a/source3/smbd/notify_inotify.c
+++ b/source3/smbd/notify_inotify.c
@@ -97,7 +97,7 @@ static uint32_t inotify_map_mask_to_filter(uint32_t mask)
uint32_t filter = 0;
for (i = 0; i < ARRAY_SIZE(inotify_mapping); i++) {
- if (inotify_mapping[0].inotify_mask & mask) {
+ if (inotify_mapping[i].inotify_mask & mask) {
filter |= inotify_mapping[i].notify_mask;
}
}
--
Samba Shared Repository