git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@670
959494ce-11ee-0310-bf91-
de5d638817bd
#include <dirent.h>
#include <string.h>
#include <sys/stat.h>
-#include <attr/xattr.h>
-#include <attr/attributes.h>
+#include <sys/xattr.h>
int printsize = 0;
int printnames = 1;
int pbl, pl, al;
al = sizeof(ab) - 1;
- if(attr_get(path, "bkselect", ab, &al, 0)) {
- if(errno == ENOATTR) {
+ if((al = getxattr(path, "user.bkselect", ab, sizeof(ab))) < 0) {
+ if(errno == ENODATA) {
} else if(errno == EPERM) {
/* Ignore for now because of weird effects... */
} else if(errno == E2BIG) {