diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-04-04 08:46:25 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 13:39:01 +1000 |
commit | 19eee33d82b4c1947b646241b6f22651abbce19d (patch) | |
tree | 7be6faa2f4a5072bffd420af0e8f70fab7113f48 /source3/modules/vfs_shadow_copy2.c | |
parent | 4af0f5f135211f49f8d6365e1819c11037485170 (diff) | |
download | samba-19eee33d82b4c1947b646241b6f22651abbce19d.tar.gz samba-19eee33d82b4c1947b646241b6f22651abbce19d.tar.bz2 samba-19eee33d82b4c1947b646241b6f22651abbce19d.zip |
s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configure
If this is ever needed again, it would be more appropriate as an options argument
to removexattr.
Andrew Bartlett
Diffstat (limited to 'source3/modules/vfs_shadow_copy2.c')
-rw-r--r-- | source3/modules/vfs_shadow_copy2.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 544baa44f7..24356ece1f 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -1377,33 +1377,6 @@ static int shadow_copy2_removexattr(vfs_handle_struct *handle, return ret; } -static int shadow_copy2_lremovexattr(vfs_handle_struct *handle, - const char *fname, const char *aname) -{ - time_t timestamp; - char *stripped; - int ret, saved_errno; - char *conv; - - if (!shadow_copy2_strip_snapshot(talloc_tos(), handle, fname, - ×tamp, &stripped)) { - return -1; - } - if (timestamp == 0) { - return SMB_VFS_NEXT_LREMOVEXATTR(handle, fname, aname); - } - conv = shadow_copy2_convert(talloc_tos(), handle, stripped, timestamp); - TALLOC_FREE(stripped); - if (conv == NULL) { - return -1; - } - ret = SMB_VFS_NEXT_LREMOVEXATTR(handle, conv, aname); - saved_errno = errno; - TALLOC_FREE(conv); - errno = saved_errno; - return ret; -} - static int shadow_copy2_setxattr(struct vfs_handle_struct *handle, const char *fname, const char *aname, const void *value, @@ -1530,7 +1503,6 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = { .getxattr_fn = shadow_copy2_getxattr, .listxattr_fn = shadow_copy2_listxattr, .removexattr_fn = shadow_copy2_removexattr, - .lremovexattr_fn = shadow_copy2_lremovexattr, .setxattr_fn = shadow_copy2_setxattr, .chmod_acl_fn = shadow_copy2_chmod_acl, .chflags_fn = shadow_copy2_chflags, |