From 7008c8484d2fa8761b8dcde3af1d62871a6c26d9 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Thu, 19 Jan 2017 13:33:52 -0800 Subject: [PATCH] Fix a call to openat with incorrect arguments Caught by running clang-FORTIFY over Android. Bug: None Test: Builds Change-Id: If138c4bbb7f5fb40bbb20e24adbb25a6ef1286ac --- debuggerd/tombstoned/tombstoned.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debuggerd/tombstoned/tombstoned.cpp b/debuggerd/tombstoned/tombstoned.cpp index 3c1dcaf3c..63e3dbd07 100644 --- a/debuggerd/tombstoned/tombstoned.cpp +++ b/debuggerd/tombstoned/tombstoned.cpp @@ -110,7 +110,7 @@ static unique_fd get_tombstone_fd() { } result.reset( - openat(tombstone_directory_fd, buf, O_CREAT | O_EXCL | O_WRONLY | O_APPEND, O_CLOEXEC, 0700)); + openat(tombstone_directory_fd, buf, O_CREAT | O_EXCL | O_WRONLY | O_APPEND | O_CLOEXEC, 0700)); if (result == -1) { PLOG(FATAL) << "failed to create tombstone at " << kTombstoneDirectory << buf; }