diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-04-02 12:43:15 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 13:39:00 +1000 |
commit | b2f7cfa848def91b6ea458e1ad14af8e96ad4ca3 (patch) | |
tree | ed0de7fcf8e2b614029ae64ffc5e263ed587a36b /source3/lib | |
parent | 52113b3bd25b12c766985be7abd042d984c924e6 (diff) | |
download | samba-b2f7cfa848def91b6ea458e1ad14af8e96ad4ca3.tar.gz samba-b2f7cfa848def91b6ea458e1ad14af8e96ad4ca3.tar.bz2 samba-b2f7cfa848def91b6ea458e1ad14af8e96ad4ca3.zip |
s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configure
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/system.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index 5ba3aebd69..70df46605d 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -1365,57 +1365,6 @@ ssize_t sys_getxattr (const char *path, const char *name, void *value, size_t si #endif } -ssize_t sys_lgetxattr (const char *path, const char *name, void *value, size_t size) -{ -#if defined(HAVE_LGETXATTR) - return lgetxattr(path, name, value, size); -#elif defined(HAVE_GETXATTR) && defined(XATTR_ADD_OPT) - int options = XATTR_NOFOLLOW; - return getxattr(path, name, value, size, 0, options); -#elif defined(HAVE_LGETEA) - return lgetea(path, name, value, size); -#elif defined(HAVE_EXTATTR_GET_LINK) - char *s; - ssize_t retval; - int attrnamespace = (strncmp(name, "system", 6) == 0) ? - EXTATTR_NAMESPACE_SYSTEM : EXTATTR_NAMESPACE_USER; - const char *attrname = ((s=strchr_m(name, '.')) == NULL) ? name : s + 1; - - if((retval=extattr_get_link(path, attrnamespace, attrname, NULL, 0)) >= 0) { - if(retval > size) { - errno = ERANGE; - return -1; - } - if((retval=extattr_get_link(path, attrnamespace, attrname, value, size)) >= 0) - return retval; - } - - DEBUG(10,("sys_lgetxattr: extattr_get_link() failed with: %s\n", strerror(errno))); - return -1; -#elif defined(HAVE_ATTR_GET) - int retval, flags = ATTR_DONTFOLLOW; - int valuelength = (int)size; - char *attrname = strchr(name,'.') + 1; - - if (strncmp(name, "system", 6) == 0) flags |= ATTR_ROOT; - - retval = attr_get(path, attrname, (char *)value, &valuelength, flags); - - return retval ? retval : valuelength; -#elif defined(HAVE_ATTROPEN) - ssize_t ret = -1; - int attrfd = solaris_attropen(path, name, O_RDONLY|AT_SYMLINK_NOFOLLOW, 0); - if (attrfd >= 0) { - ret = solaris_read_xattr(attrfd, value, size); - close(attrfd); - } - return ret; -#else - errno = ENOSYS; - return -1; -#endif -} - ssize_t sys_fgetxattr (int filedes, const char *name, void *value, size_t size) { #if defined(HAVE_FGETXATTR) |