Dolda2000 GitWeb
/
utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added mechanism for passing arguments to mplayer from planime.
[utils.git]
/
bkselect.c
diff --git
a/bkselect.c
b/bkselect.c
index
736a575
..
96f3ad9
100644
(file)
--- a/
bkselect.c
+++ b/
bkselect.c
@@
-5,8
+5,7
@@
#include <dirent.h>
#include <string.h>
#include <sys/stat.h>
#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 printsize = 0;
int printnames = 1;
@@
-23,8
+22,8
@@
int bkselect(char *path, int s)
int pbl, pl, al;
al = sizeof(ab) - 1;
int pbl, pl, al;
al = sizeof(ab) - 1;
- if(
attr_get(path, "bkselect", ab, &al, 0)
) {
- if(errno == ENO
ATTR
) {
+ if(
(al = getxattr(path, "user.bkselect", ab, sizeof(ab))) < 0
) {
+ if(errno == ENO
DATA
) {
} else if(errno == EPERM) {
/* Ignore for now because of weird effects... */
} else if(errno == E2BIG) {
} else if(errno == EPERM) {
/* Ignore for now because of weird effects... */
} else if(errno == E2BIG) {