summaryrefslogtreecommitdiff
path: root/source3/smbd/notify_inotify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-19 21:57:50 +0100
committerVolker Lendecke <vl@samba.org>2012-03-21 12:52:09 +0100
commit4319076ccaf3e6264207a88b88dea0fa63b31879 (patch)
tree70e46f17397cf9c3d5bd85e8506a188efd5cc238 /source3/smbd/notify_inotify.c
parent06db3bfa374026c05dc21bf0454234dbdbedb26b (diff)
downloadsamba-4319076ccaf3e6264207a88b88dea0fa63b31879.tar.gz
samba-4319076ccaf3e6264207a88b88dea0fa63b31879.tar.bz2
samba-4319076ccaf3e6264207a88b88dea0fa63b31879.zip
s3: Pass "path" through vfs_notify_watch
Diffstat (limited to 'source3/smbd/notify_inotify.c')
-rw-r--r--source3/smbd/notify_inotify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c
index bccd093be4..a074d019d9 100644
--- a/source3/smbd/notify_inotify.c
+++ b/source3/smbd/notify_inotify.c
@@ -372,6 +372,7 @@ static int watch_destructor(struct inotify_watch_context *w)
*/
NTSTATUS inotify_watch(struct sys_notify_context *ctx,
struct notify_entry *e,
+ const char *path,
void (*callback)(struct sys_notify_context *ctx,
void *private_data,
struct notify_event *ev),
@@ -405,7 +406,7 @@ NTSTATUS inotify_watch(struct sys_notify_context *ctx,
mask |= (IN_MASK_ADD | IN_ONLYDIR);
/* get a new watch descriptor for this path */
- wd = inotify_add_watch(in->fd, e->path, mask);
+ wd = inotify_add_watch(in->fd, path, mask);
if (wd == -1) {
e->filter = filter;
DEBUG(1, ("inotify_add_watch returned %s\n", strerror(errno)));
@@ -428,7 +429,7 @@ NTSTATUS inotify_watch(struct sys_notify_context *ctx,
w->private_data = private_data;
w->mask = mask;
w->filter = filter;
- w->path = talloc_strdup(w, e->path);
+ w->path = talloc_strdup(w, path);
if (w->path == NULL) {
inotify_rm_watch(in->fd, wd);
e->filter = filter;