X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=bkselect.c;h=96f3ad9ea1e58588019fbf27ed20d9322a7fff17;hb=535cc97f7ce80b29bbb5c183bb1079b44e011c6c;hp=736a5759a9ca4aecc980c86dcd373d9492a26ac3;hpb=30449be1fdf69727b1c50e9a83194371a45e3dc5;p=utils.git diff --git a/bkselect.c b/bkselect.c index 736a575..96f3ad9 100644 --- a/bkselect.c +++ b/bkselect.c @@ -5,8 +5,7 @@ #include #include #include -#include -#include +#include int printsize = 0; int printnames = 1; @@ -23,8 +22,8 @@ int bkselect(char *path, int s) 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) {