Skip to content

Commit fa1502b

Browse files
committed
fix: use correct xattr header
1 parent 438d0a6 commit fa1502b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/inode.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#include "inode.h"
66
#include <errno.h>
77
#include <stdlib.h>
8-
#include <attr/xattr.h>
8+
#include <sys/types.h>
9+
#include <sys/xattr.h>
910

1011
const uint16_t EX_INODE_MAGIC1 = 0xabcc;
1112
const uint8_t EX_DIR_MAGIC1 = 0xde;
@@ -869,7 +870,7 @@ int ex_inode_getxattr(struct ex_inode *inode, const struct ex_span *name, struct
869870
}
870871
}
871872

872-
return -ENOATTR;
873+
return -ENODATA;
873874
}
874875

875876
int ex_inode_removexattr(struct ex_inode *inode, const struct ex_span *name) {
@@ -887,5 +888,5 @@ int ex_inode_removexattr(struct ex_inode *inode, const struct ex_span *name) {
887888
}
888889
}
889890

890-
return -ENOATTR;
891+
return -ENODATA;
891892
}

0 commit comments

Comments
 (0)