Author: jra
Date: 2007-03-19 17:02:15 +0000 (Mon, 19 Mar 2007)
New Revision: 21874

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21874

Log:
Fix missing notify function. Thanks to Thomas Bork <[EMAIL PROTECTED]>
for pointing this out !
Jeremy.

Modified:
   branches/SAMBA_3_0/source/modules/vfs_full_audit.c
   branches/SAMBA_3_0_25/source/modules/vfs_full_audit.c


Changeset:
Modified: branches/SAMBA_3_0/source/modules/vfs_full_audit.c
===================================================================
--- branches/SAMBA_3_0/source/modules/vfs_full_audit.c  2007-03-19 12:54:39 UTC 
(rev 21873)
+++ branches/SAMBA_3_0/source/modules/vfs_full_audit.c  2007-03-19 17:02:15 UTC 
(rev 21874)
@@ -174,6 +174,13 @@
                       const char *pathname, mode_t mode, SMB_DEV_T dev);
 static char *smb_full_audit_realpath(vfs_handle_struct *handle,
                            const char *path, char *resolved_path);
+static NTSTATUS smb_full_audit_notify_watch(struct vfs_handle_struct *handle,
+                       struct sys_notify_context *ctx,
+                       struct notify_entry *e,
+                       void (*callback)(struct sys_notify_context *ctx,
+                                       void *private_data,
+                                       struct notify_event *ev),
+                       void *private_data, void *handle_p);
 static int smb_full_audit_chflags(vfs_handle_struct *handle,
                            const char *path, uint flags);
 static size_t smb_full_audit_fget_nt_acl(vfs_handle_struct *handle, 
files_struct *fsp,
@@ -399,6 +406,8 @@
         SMB_VFS_LAYER_LOGGER},
        {SMB_VFS_OP(smb_full_audit_realpath),   SMB_VFS_OP_REALPATH,
         SMB_VFS_LAYER_LOGGER},
+       {SMB_VFS_OP(smb_full_audit_notify_watch),SMB_VFS_OP_NOTIFY_WATCH,
+        SMB_VFS_LAYER_LOGGER},
        {SMB_VFS_OP(smb_full_audit_chflags),    SMB_VFS_OP_CHFLAGS,
         SMB_VFS_LAYER_LOGGER},
 
@@ -1410,6 +1419,23 @@
        return result;
 }
 
+static NTSTATUS smb_full_audit_notify_watch(struct vfs_handle_struct *handle,
+                       struct sys_notify_context *ctx,
+                       struct notify_entry *e,
+                       void (*callback)(struct sys_notify_context *ctx,
+                                       void *private_data,
+                                       struct notify_event *ev),
+                       void *private_data, void *handle_p)
+{
+       NTSTATUS result;
+
+       result = SMB_VFS_NEXT_NOTIFY_WATCH(handle, ctx, e, callback, 
private_data, handle_p);
+
+       do_log(SMB_VFS_OP_NOTIFY_WATCH, NT_STATUS_IS_OK(result), handle, "");
+
+       return result;
+}
+
 static int smb_full_audit_chflags(vfs_handle_struct *handle,
                            const char *path, uint flags)
 {

Modified: branches/SAMBA_3_0_25/source/modules/vfs_full_audit.c
===================================================================
--- branches/SAMBA_3_0_25/source/modules/vfs_full_audit.c       2007-03-19 
12:54:39 UTC (rev 21873)
+++ branches/SAMBA_3_0_25/source/modules/vfs_full_audit.c       2007-03-19 
17:02:15 UTC (rev 21874)
@@ -174,6 +174,13 @@
                       const char *pathname, mode_t mode, SMB_DEV_T dev);
 static char *smb_full_audit_realpath(vfs_handle_struct *handle,
                            const char *path, char *resolved_path);
+static NTSTATUS smb_full_audit_notify_watch(struct vfs_handle_struct *handle,
+                       struct sys_notify_context *ctx,
+                       struct notify_entry *e,
+                       void (*callback)(struct sys_notify_context *ctx,
+                                       void *private_data,
+                                       struct notify_event *ev),
+                       void *private_data, void *handle_p);
 static int smb_full_audit_chflags(vfs_handle_struct *handle,
                            const char *path, uint flags);
 static size_t smb_full_audit_fget_nt_acl(vfs_handle_struct *handle, 
files_struct *fsp,
@@ -399,6 +406,8 @@
         SMB_VFS_LAYER_LOGGER},
        {SMB_VFS_OP(smb_full_audit_realpath),   SMB_VFS_OP_REALPATH,
         SMB_VFS_LAYER_LOGGER},
+       {SMB_VFS_OP(smb_full_audit_notify_watch),SMB_VFS_OP_NOTIFY_WATCH,
+        SMB_VFS_LAYER_LOGGER},
        {SMB_VFS_OP(smb_full_audit_chflags),    SMB_VFS_OP_CHFLAGS,
         SMB_VFS_LAYER_LOGGER},
 
@@ -1410,6 +1419,23 @@
        return result;
 }
 
+static NTSTATUS smb_full_audit_notify_watch(struct vfs_handle_struct *handle,
+                       struct sys_notify_context *ctx,
+                       struct notify_entry *e,
+                       void (*callback)(struct sys_notify_context *ctx,
+                                       void *private_data,
+                                       struct notify_event *ev),
+                       void *private_data, void *handle_p)
+{
+       NTSTATUS result;
+
+       result = SMB_VFS_NEXT_NOTIFY_WATCH(handle, ctx, e, callback, 
private_data, handle_p);
+
+       do_log(SMB_VFS_OP_NOTIFY_WATCH, NT_STATUS_IS_OK(result), handle, "");
+
+       return result;
+}
+
 static int smb_full_audit_chflags(vfs_handle_struct *handle,
                            const char *path, uint flags)
 {

Reply via email to