From 69a14f30224e5c0e8d9d71f822f5d1801356aee4 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 22 Jul 2016 11:38:54 -0600 Subject: [PATCH] Ignore setxattr() failures on tmpfs. Bug: 30210614 Change-Id: Ic9dfb2439b4b1056e1a58552be2e84f4e524321e --- cmds/installd/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/installd/utils.cpp b/cmds/installd/utils.cpp index ba0ce0a757..674f760e52 100644 --- a/cmds/installd/utils.cpp +++ b/cmds/installd/utils.cpp @@ -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 { -- 2.11.0