From: Jeremy Allison Date: Fri, 19 Mar 2021 20:55:26 +0000 (-0700) Subject: s3: vxfs: Remove unused vxfs_listxattr_path(). X-Git-Tag: tevent-0.11.0~1433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bb890a2af1fc72efa16fa6e4c1f123cee2f87bd;p=thirdparty%2Fsamba.git s3: vxfs: Remove unused vxfs_listxattr_path(). Missed when SMB_VFS_LISTXATTR() was removed. Signed-off-by: Jeremy Allison Reviewed-by: David Mulder --- diff --git a/source3/modules/lib_vxfs.c b/source3/modules/lib_vxfs.c index dcb5cb304e1..5df9b686a7d 100644 --- a/source3/modules/lib_vxfs.c +++ b/source3/modules/lib_vxfs.c @@ -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; diff --git a/source3/modules/vfs_vxfs.h b/source3/modules/vfs_vxfs.h index 19755900d73..29109bf4789 100644 --- a/source3/modules/vfs_vxfs.h +++ b/source3/modules/vfs_vxfs.h @@ -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);