From: Jeremy Allison Date: Fri, 19 Mar 2021 20:59:58 +0000 (-0700) Subject: s3: vxfs: Remove unused vxfs_setxattr_path(). X-Git-Tag: tevent-0.11.0~1432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=321703fbea5dbf5238b3675ca678c0ddf979da02;p=thirdparty%2Fsamba.git s3: vxfs: Remove unused vxfs_setxattr_path(). Missed when SMB_VFS_SETXATTR() was removed. Signed-off-by: Jeremy Allison Reviewed-by: David Mulder Autobuild-User(master): David Mulder Autobuild-Date(master): Mon Mar 22 22:36:05 UTC 2021 on sn-devel-184 --- diff --git a/source3/modules/lib_vxfs.c b/source3/modules/lib_vxfs.c index 5df9b686a7d..13b2e612a27 100644 --- a/source3/modules/lib_vxfs.c +++ b/source3/modules/lib_vxfs.c @@ -61,30 +61,6 @@ int vxfs_setxattr_fd(int fd, const char *name, const void *value, return ret; } -int vxfs_setxattr_path(const char *path, const char *name, const void *value, - size_t len, int flags, bool is_dir) -{ - int ret, fd = -1; - - if (is_dir) { - fd = open(path, O_RDONLY|O_DIRECTORY); - } else { - fd = open(path, O_WRONLY); - } - - if (fd == -1) { - DEBUG(10, ("error in vxfs_setxattr_path: %s\n", - strerror(errno))); - return -1; - } - - ret = vxfs_setxattr_fd(fd, name, value, len, flags); - - close(fd); - - return ret; -} - int vxfs_getxattr_fd(int fd, const char *name, void *value, size_t len) { int ret; diff --git a/source3/modules/vfs_vxfs.h b/source3/modules/vfs_vxfs.h index 29109bf4789..e081baa0fc7 100644 --- a/source3/modules/vfs_vxfs.h +++ b/source3/modules/vfs_vxfs.h @@ -18,8 +18,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -int vxfs_setxattr_path(const char *, const char *, const void *, size_t, int, - bool); int vxfs_setxattr_fd(int, const char *, const void *, size_t, int); int vxfs_getxattr_path(const char *, const char *, void *, size_t);