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/lib | |
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/lib')
-rw-r--r-- | source3/lib/system.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index abebb43915..8a381732cd 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -1680,43 +1680,6 @@ int sys_removexattr (const char *path, const char *name) #endif } -int sys_lremovexattr (const char *path, const char *name) -{ -#if defined(HAVE_LREMOVEXATTR) - return lremovexattr(path, name); -#elif defined(HAVE_REMOVEXATTR) && defined(XATTR_ADD_OPT) - int options = XATTR_NOFOLLOW; - return removexattr(path, name, options); -#elif defined(HAVE_LREMOVEEA) - return lremoveea(path, name); -#elif defined(HAVE_EXTATTR_DELETE_LINK) - char *s; - int attrnamespace = (strncmp(name, "system", 6) == 0) ? - EXTATTR_NAMESPACE_SYSTEM : EXTATTR_NAMESPACE_USER; - const char *attrname = ((s=strchr_m(name, '.')) == NULL) ? name : s + 1; - - return extattr_delete_link(path, attrnamespace, attrname); -#elif defined(HAVE_ATTR_REMOVE) - int flags = ATTR_DONTFOLLOW; - char *attrname = strchr(name,'.') + 1; - - if (strncmp(name, "system", 6) == 0) flags |= ATTR_ROOT; - - return attr_remove(path, attrname, flags); -#elif defined(HAVE_ATTROPEN) - int ret = -1; - int attrdirfd = solaris_attropen(path, ".", O_RDONLY|AT_SYMLINK_NOFOLLOW, 0); - if (attrdirfd >= 0) { - ret = solaris_unlinkat(attrdirfd, name); - close(attrdirfd); - } - return ret; -#else - errno = ENOSYS; - return -1; -#endif -} - int sys_fremovexattr (int filedes, const char *name) { #if defined(HAVE_FREMOVEXATTR) |