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;