vfs: Convert vfswrap_fs_capabilities to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Fri, 12 Apr 2013 09:38:28 +0000 (11:38 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:49:59 +0000 (14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c

index 8a03ea372a244e5d1ddb7e6c0a6773474170b9d0..8804e623acf8fc01e41481297ed1cfb8898ec642 100644 (file)
@@ -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;
        }