s4:kdc: Implement KDC plugin hardware authentication policy
[samba.git] / source3 / modules / vfs_readonly.c
index 7919dbc78bf7b0a2dda48a0ad5c62461c4beb320..cde8ef973ca158075b227dd5ae07984fc8b52e69 100644 (file)
@@ -82,12 +82,13 @@ static int readonly_connect(vfs_handle_struct *handle,
 
       /* Wipe out the VUID cache. */
       for (i=0; i< VUID_CACHE_SIZE; i++) {
-        struct vuid_cache_entry *ent = &conn->vuid_cache.array[i];
+        struct vuid_cache_entry *ent = &conn->vuid_cache->array[i];
         ent->vuid = UID_FIELD_INVALID;
         TALLOC_FREE(ent->session_info);
         ent->read_only = false;
+        ent->share_access = 0;
       }
-      conn->vuid_cache.next_entry = 0;
+      conn->vuid_cache->next_entry = 0;
     }
 
     return 0;
@@ -104,8 +105,8 @@ static struct vfs_fn_pointers vfs_readonly_fns = {
        .connect_fn = readonly_connect
 };
 
-NTSTATUS vfs_readonly_init(void);
-NTSTATUS vfs_readonly_init(void)
+NTSTATUS vfs_readonly_init(TALLOC_CTX *);
+NTSTATUS vfs_readonly_init(TALLOC_CTX *ctx)
 {
   return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, MODULE_NAME,
                          &vfs_readonly_fns);