]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: fake_acls: Remove unused fake_acls_uid()/fake_acls_gid().
authorJeremy Allison <jra@samba.org>
Wed, 23 Jun 2021 17:50:04 +0000 (10:50 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 25 Jun 2021 15:53:31 +0000 (15:53 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fake_acls.c

index ffbb5f7dc1d654b6eafff2375d3ec8171a6d34fb..79735a81233e71f670499b7e3c0bc9b23d6c8951 100644 (file)
 #define FAKE_ACL_ACCESS_XATTR "system.fake_access_acl"
 #define FAKE_ACL_DEFAULT_XATTR "system.fake_default_acl"
 
-#if 0
-static int fake_acls_uid(vfs_handle_struct *handle,
-                        struct smb_filename *smb_fname,
-                        uid_t *uid)
-{
-       ssize_t size;
-       uint8_t uid_buf[4];
-       size = SMB_VFS_NEXT_GETXATTR(handle, smb_fname,
-                       FAKE_UID, uid_buf, sizeof(uid_buf));
-       if (size == -1 && errno == ENOATTR) {
-               return 0;
-       }
-       if (size != 4) {
-               return -1;
-       }
-       *uid = IVAL(uid_buf, 0);
-       return 0;
-}
-
-static int fake_acls_gid(vfs_handle_struct *handle,
-                        struct smb_filename *smb_fname,
-                        uid_t *gid)
-{
-       ssize_t size;
-       uint8_t gid_buf[4];
-
-       size = SMB_VFS_NEXT_GETXATTR(handle, smb_fname,
-                       FAKE_GID, gid_buf, sizeof(gid_buf));
-       if (size == -1 && errno == ENOATTR) {
-               return 0;
-       }
-       if (size != 4) {
-               return -1;
-       }
-       *gid = IVAL(gid_buf, 0);
-       return 0;
-}
-#endif
-
 static int fake_acls_fuid(vfs_handle_struct *handle,
                           files_struct *fsp,
                           uid_t *uid)