Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9819df89 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Ignore setxattr() failures on tmpfs.

am: 69a14f30

Change-Id: I090d6f02b2551548ca1ebd60fcd4ba2b0057922f
parents 49c913e6 69a14f30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -823,7 +823,7 @@ int write_path_inode(const std::string& parent, const char* name, const char* in
    }

    inode_raw = inode;
    if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0) {
    if (setxattr(parent.c_str(), inode_xattr, &inode_raw, sizeof(inode_raw), 0) != 0 && errno != EOPNOTSUPP) {
        PLOG(ERROR) << "Failed to write xattr " << inode_xattr << " at " << parent;
        return -1;
    } else {