]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: vxfs: Remove unused vxfs_listxattr_path().
authorJeremy Allison <jra@samba.org>
Fri, 19 Mar 2021 20:55:26 +0000 (13:55 -0700)
committerDavid Mulder <dmulder@samba.org>
Mon, 22 Mar 2021 21:25:31 +0000 (21:25 +0000)
Missed when SMB_VFS_LISTXATTR() was removed.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
source3/modules/lib_vxfs.c
source3/modules/vfs_vxfs.h

index dcb5cb304e139128b16c880f25284c522fa69a7c..5df9b686a7d145d43e688cd10206b135a6bdbce7 100644 (file)
@@ -189,23 +189,6 @@ int vxfs_listxattr_fd(int fd, char *list, size_t size)
        return len;
 }
 
-int vxfs_listxattr_path(const char *path, char *list, size_t size)
-{
-       int ret, fd = -1;
-
-       fd = open(path, O_RDONLY);
-       if (fd == -1) {
-               DEBUG(10, ("file not opened: vxfs_listxattr_path for %s\n",
-                          path));
-               return -1;
-       }
-
-       ret = vxfs_listxattr_fd(fd, list, size);
-       close(fd);
-
-       return ret;
-}
-
 int vxfs_setwxattr_fd(int fd)
 {
        int ret = 0;
index 19755900d7313f09e2f0451cb2b0763d94f513fd..29109bf4789f011f9512519a2370449bf2e7dd62 100644 (file)
@@ -28,7 +28,6 @@ int vxfs_getxattr_fd(int, const char *, void *, size_t);
 int vxfs_removexattr_path(const char *, const char *, bool);
 int vxfs_removexattr_fd(int, const char *);
 
-int vxfs_listxattr_path(const char *, char *, size_t);
 int vxfs_listxattr_fd(int, char *, size_t);
 
 int vxfs_setwxattr_path(const char *, bool);