examples/VFS/skel_opaque: fix a likely a copy/paste error
[sfrench/samba-autobuild/.git] / examples / VFS / skel_opaque.c
index f88e9258c733da8955fb60def4b615899b3edad6..46e6f21d372c6922fbb1e665fb8cadd3ceec83c6 100644 (file)
@@ -856,7 +856,6 @@ static int skel_fremovexattr(vfs_handle_struct *handle,
 {
        errno = ENOSYS;
        return -1;
-       return SMB_VFS_NEXT_FREMOVEXATTR(handle, fsp, name);
 }
 
 static int skel_setxattr(vfs_handle_struct *handle,
@@ -1058,6 +1057,13 @@ struct vfs_fn_pointers skel_opaque_fns = {
 static_decl_vfs;
 NTSTATUS vfs_skel_opaque_init(TALLOC_CTX *ctx)
 {
+       /*
+        * smb_vfs_assert_all_fns() makes sure every
+        * call is implemented.
+        *
+        * An opaque module requires this!
+        */
+       smb_vfs_assert_all_fns(&skel_opaque_fns, "skel_opaque");
        return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "skel_opaque",
                                &skel_opaque_fns);
 }