diff options
author | Volker Lendecke <vl@samba.org> | 2012-03-19 21:57:50 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-03-21 12:52:09 +0100 |
commit | 4319076ccaf3e6264207a88b88dea0fa63b31879 (patch) | |
tree | 70e46f17397cf9c3d5bd85e8506a188efd5cc238 /source3/modules/vfs_notify_fam.c | |
parent | 06db3bfa374026c05dc21bf0454234dbdbedb26b (diff) | |
download | samba-4319076ccaf3e6264207a88b88dea0fa63b31879.tar.gz samba-4319076ccaf3e6264207a88b88dea0fa63b31879.tar.bz2 samba-4319076ccaf3e6264207a88b88dea0fa63b31879.zip |
s3: Pass "path" through vfs_notify_watch
Diffstat (limited to 'source3/modules/vfs_notify_fam.c')
-rw-r--r-- | source3/modules/vfs_notify_fam.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/modules/vfs_notify_fam.c b/source3/modules/vfs_notify_fam.c index 343149423e..8a3487b9d3 100644 --- a/source3/modules/vfs_notify_fam.c +++ b/source3/modules/vfs_notify_fam.c @@ -222,6 +222,7 @@ static int fam_watch_context_destructor(struct fam_watch_context *ctx) static NTSTATUS fam_watch(vfs_handle_struct *vfs_handle, 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), @@ -259,7 +260,8 @@ static NTSTATUS fam_watch(vfs_handle_struct *vfs_handle, watch->private_data = private_data; watch->sys_ctx = ctx; - if (!(watch->path = talloc_strdup(watch, e->path))) { + watch->path = talloc_strdup(watch, path); + if (watch->path == NULL) { DEBUG(0, ("talloc_asprintf failed\n")); TALLOC_FREE(watch); return NT_STATUS_NO_MEMORY; |