diff options
author | Volker Lendecke <vl@samba.org> | 2014-01-02 17:54:53 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-12-16 21:22:26 +0100 |
commit | 173a647698da0e67047aa1073552cc06ed90c87d (patch) | |
tree | fc7180c310e157b6458e21849d9b21debc372e9d /source3/smbd/notify.c | |
parent | db2f5b4c21acddffce9960ebdc906be16c9e34af (diff) | |
download | samba-173a647698da0e67047aa1073552cc06ed90c87d.tar.gz |
notify: Move path construction to notify_trigger
notify_msg won't need to construct the path anymore, it will be able to
put the parts into iovecs
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Dec 16 21:22:26 CET 2014 on sn-devel-104
Diffstat (limited to 'source3/smbd/notify.c')
-rw-r--r-- | source3/smbd/notify.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index ac1a55ce842..5ac8c0c791d 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -442,21 +442,12 @@ void notify_fname(connection_struct *conn, uint32 action, uint32 filter, const char *path) { struct notify_context *notify_ctx = conn->sconn->notify_ctx; - char *fullpath, *to_free; - char tmpbuf[PATH_MAX]; - ssize_t len; if (path[0] == '.' && path[1] == '/') { path += 2; } - len = full_path_tos(conn->connectpath, path, tmpbuf, sizeof(tmpbuf), - &fullpath, &to_free); - if (len == -1) { - DEBUG(0, ("full_path_tos failed\n")); - return; - } - notify_trigger(notify_ctx, action, filter, fullpath); - TALLOC_FREE(to_free); + + notify_trigger(notify_ctx, action, filter, conn->connectpath, path); } static void notify_fsp(files_struct *fsp, struct timespec when, |