char *parent;
const char *name;
+ DEBUG(0,("notify_fname: path[%s]\n", path));
+
if (path[0] == '.' && path[1] == '/') {
path += 2;
}
struct smb_filename *smb_fname_parent = NULL;
NTSTATUS status;
+ DEBUG(0,("notify_fname: path[%s] parent[%s] name[%s]\n",
+ path, parent, name));
+
status = create_synthetic_smb_fname(talloc_tos(), parent, NULL,
NULL, &smb_fname_parent);
if (!NT_STATUS_IS_OK(status)) {
return;
}
+ DEBUG(0,("notify_fname: path[%s] fname[%s]\n",
+ path, smb_fname_parent->base_name));
if (SMB_VFS_STAT(conn, smb_fname_parent) != -1) {
notify_onelevel(conn->notify_ctx, action, filter,
SMB_VFS_FILE_ID_CREATE(conn, &smb_fname_parent->st),
DEBUG(0, ("asprintf failed\n"));
return;
}
+
+ DEBUG(0,("notify_fname: path[%s] fullpath[%s]\n",
+ path, fullpath));
+
notify_trigger(conn->notify_ctx, action, filter, fullpath);
TALLOC_FREE(fullpath);
}
enum ndr_err_code ndr_err;
TALLOC_CTX *tmp_ctx;
+ DEBUG(0,("notify_send: path[%s] action[0x%0X]\n", path, action));
+
ev.action = action;
ev.path = path;
ev.private_data = e->private_data;
return;
}
+ DEBUG(0,("notify_onelevel: name[%s] action[0x%0X] filter[0x%0X]\n",
+ name, action, filter));
+
array = talloc_zero(talloc_tos(), struct notify_entry_array);
if (array == NULL) {
return;