From: Stefan Metzmacher Date: Sun, 21 Aug 2022 13:19:59 +0000 (+0200) Subject: s3:smbd: move VFS_FIND() to smbd/vfs.c X-Git-Tag: talloc-2.4.0~902 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=641bfc5905b0ec21ec7c65cda5139cb676d24917;p=thirdparty%2Fsamba.git s3:smbd: move VFS_FIND() to smbd/vfs.c It's only used there... BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 20b6eb57900..f2a5d0bd5c2 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -891,10 +891,6 @@ struct smb_filename { #define SMB_FILENAME_POSIX_PATH FSP_POSIX_FLAGS_PATHNAMES -#define VFS_FIND(__fn__) while (handle->fns->__fn__##_fn==NULL) { \ - handle = handle->next; \ - } - enum vfs_translate_direction { vfs_translate_to_unix = 0, vfs_translate_to_windows diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index acd66f3ca20..edee75375f3 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1333,6 +1333,12 @@ NTSTATUS vfs_fget_dos_attributes(struct files_struct *fsp, return NT_STATUS_OK; } +#define VFS_FIND(__fn__) do { \ + while (handle->fns->__fn__##_fn==NULL) { \ + handle = handle->next; \ + } \ +} while(0) + int smb_vfs_call_connect(struct vfs_handle_struct *handle, const char *service, const char *user) {