s3: VFS: Add SMB_VFS_SYMLINKAT().
[bbaumbach/samba-autobuild/.git] / examples / VFS / skel_opaque.c
index ecc1c920c92bc051745dbd6d1a19f2e386147553..96661857b4caa04d43e84c61014b4e201de1ed0b 100644 (file)
@@ -464,6 +464,15 @@ static int skel_symlink(vfs_handle_struct *handle,
        return -1;
 }
 
+static int skel_symlinkat(vfs_handle_struct *handle,
+                       const char *link_contents,
+                       struct files_struct *dirfsp,
+                       const struct smb_filename *new_smb_fname)
+{
+       errno = ENOSYS;
+       return -1;
+}
+
 static int skel_vfs_readlinkat(vfs_handle_struct *handle,
                        files_struct *dirfsp,
                        const struct smb_filename *smb_fname,
@@ -1090,6 +1099,7 @@ static struct vfs_fn_pointers skel_opaque_fns = {
        .linux_setlease_fn = skel_linux_setlease,
        .getlock_fn = skel_getlock,
        .symlink_fn = skel_symlink,
+       .symlinkat_fn = skel_symlinkat,
        .readlinkat_fn = skel_vfs_readlinkat,
        .linkat_fn = skel_linkat,
        .mknodat_fn = skel_mknodat,