From 259046a38810367985e7e9f89b90d769eb6380ce Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 5 Apr 2013 18:31:58 +0200 Subject: [PATCH] Fix build without xattrs being used * need to invoke fs_fopen_attr() instead of fs_open_attr() --- src/build/libroot/fs_attr_generic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/libroot/fs_attr_generic.cpp b/src/build/libroot/fs_attr_generic.cpp index ee18e65bb8..d35bd7d43d 100644 --- a/src/build/libroot/fs_attr_generic.cpp +++ b/src/build/libroot/fs_attr_generic.cpp @@ -380,7 +380,7 @@ fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos, void *buffer, size_t readBytes) { // open the attribute - int attrFD = fs_open_attr(fd, attribute, type, O_RDONLY); + int attrFD = fs_fopen_attr(fd, attribute, type, O_RDONLY); if (attrFD < 0) return attrFD; @@ -405,7 +405,7 @@ fs_write_attr(int fd, const char *attribute, uint32 type, off_t pos, const void *buffer, size_t readBytes) { // open the attribute - int attrFD = fs_open_attr(fd, attribute, type, + int attrFD = fs_fopen_attr(fd, attribute, type, O_WRONLY | O_CREAT | O_TRUNC); if (attrFD < 0) return attrFD;