diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-04-04 08:34:25 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 13:39:00 +1000 |
commit | c70ac29c5441073752da7384b7f3bf54c9986aa0 (patch) | |
tree | ad33c1dc4ac5782f682ce66029d73cc5551a4a82 /source3/modules/vfs_cap.c | |
parent | c5b17c555576a2b8e24e0df613dde922fe60520d (diff) | |
download | samba-c70ac29c5441073752da7384b7f3bf54c9986aa0.tar.gz |
s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to listxattr.
Andrew Bartlett
Diffstat (limited to 'source3/modules/vfs_cap.c')
-rw-r--r-- | source3/modules/vfs_cap.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index 125b5f43da7..406126cade7 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -523,18 +523,6 @@ static int cap_setxattr(vfs_handle_struct *handle, const char *path, const char return SMB_VFS_NEXT_SETXATTR(handle, cappath, capname, value, size, flags); } -static int cap_lsetxattr(vfs_handle_struct *handle, const char *path, const char *name, const void *value, size_t size, int flags) -{ - char *cappath = capencode(talloc_tos(), path); - char *capname = capencode(talloc_tos(), name); - - if (!cappath || !capname) { - errno = ENOMEM; - return -1; - } - return SMB_VFS_NEXT_LSETXATTR(handle, cappath, capname, value, size, flags); -} - static int cap_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp, const char *path, const void *value, size_t size, int flags) { char *cappath = capencode(talloc_tos(), path); @@ -578,7 +566,6 @@ static struct vfs_fn_pointers vfs_cap_fns = { .lremovexattr_fn = cap_lremovexattr, .fremovexattr_fn = cap_fremovexattr, .setxattr_fn = cap_setxattr, - .lsetxattr_fn = cap_lsetxattr, .fsetxattr_fn = cap_fsetxattr }; |