From 3d05622c560d2b481c28fa834f3fa2fde288fcce Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:38:28 +0200 Subject: vfs: Convert vfswrap_fs_capabilities to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_default.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 8a03ea372a..8804e623ac 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -113,7 +113,6 @@ static uint32_t vfswrap_fs_capabilities(struct vfs_handle_struct *handle, uint32_t caps = FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVED_NAMES; struct smb_filename *smb_fname_cpath = NULL; struct vfs_statvfs_struct statbuf; - NTSTATUS status; int ret; ZERO_STRUCT(statbuf); @@ -127,12 +126,9 @@ static uint32_t vfswrap_fs_capabilities(struct vfs_handle_struct *handle, /* Work out what timestamp resolution we can * use when setting a timestamp. */ - status = create_synthetic_smb_fname(talloc_tos(), - conn->connectpath, - NULL, - NULL, - &smb_fname_cpath); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_cpath = synthetic_smb_fname(talloc_tos(), conn->connectpath, + NULL, NULL); + if (smb_fname_cpath == NULL) { return caps; } -- cgit