vfs_fruit: remove a layer of indirection
authorRalph Boehme <slow@samba.org>
Thu, 23 May 2019 06:27:37 +0000 (08:27 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 May 2019 20:19:27 +0000 (20:19 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c

index 876a7100cf8da308127141da6f44b463a06e0c68..128ad4bd227334764d97564700a58c8fe46f5391 100644 (file)
@@ -1582,9 +1582,10 @@ exit:
        return ealen;
 }
 
-static int ad_open_rsrc_adouble(const struct smb_filename *smb_fname,
-                               int flags,
-                               mode_t mode)
+static int ad_open_rsrc(vfs_handle_struct *handle,
+                       const struct smb_filename *smb_fname,
+                       int flags,
+                       mode_t mode)
 {
        int ret;
        int fd;
@@ -1601,14 +1602,6 @@ static int ad_open_rsrc_adouble(const struct smb_filename *smb_fname,
        return fd;
 }
 
-static int ad_open_rsrc(vfs_handle_struct *handle,
-                       const struct smb_filename *smb_fname,
-                       int flags,
-                       mode_t mode)
-{
-       return ad_open_rsrc_adouble(smb_fname, flags, mode);
-}
-
 /*
  * Here's the deal: for ADOUBLE_META we can do without an fd as we can issue
  * path based xattr calls. For ADOUBLE_RSRC however we need a full-fledged fd