From 8c5f2dfc3e038a10490053d716bdf5231d60eb20 Mon Sep 17 00:00:00 2001 From: fredrik Date: Thu, 6 Jul 2006 14:09:26 +0000 Subject: [PATCH] Use sys/xattr instead. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@670 959494ce-11ee-0310-bf91-de5d638817bd --- bkselect.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) { -- 2.11.0