struct connection_struct *conn,
struct files_struct **_fsp);
-NTSTATUS vfs_fget_dos_attributes(struct files_struct *fsp,
- uint32_t *dosmode);
-
#include "source3/lib/interface.h"
/* The following definitions come from lib/ldap_debug_handler.c */
}
/* Get the DOS attributes via the VFS if we can */
- status = vfs_fget_dos_attributes(fsp, &result);
+ status = SMB_VFS_FGET_DOS_ATTRIBUTES(fsp->conn,
+ metadata_fsp(fsp),
+ &result);
if (!NT_STATUS_IS_OK(status)) {
/*
* Only fall back to using UNIX modes if we get NOT_IMPLEMENTED.
*/
uint32_t attr = 0;
- status = vfs_fget_dos_attributes(smb_fname->fsp, &attr);
+ status = SMB_VFS_FGET_DOS_ATTRIBUTES(
+ conn,
+ metadata_fsp(smb_fname->fsp),
+ &attr);
if (NT_STATUS_IS_OK(status)) {
existing_dos_attributes = attr;
}
return NT_STATUS_OK;
}
-NTSTATUS vfs_fget_dos_attributes(struct files_struct *fsp,
- uint32_t *dosmode)
-{
- NTSTATUS status;
-
- /*
- * Make sure to pass the base_fsp to the VFS
- */
- status = SMB_VFS_FGET_DOS_ATTRIBUTES(
- fsp->conn, metadata_fsp(fsp), dosmode);
- return status;
-}
-
static struct smb_vfs_deny_state *smb_vfs_deny_global;
void smb_vfs_assert_allowed(void)