diff --git a/crash_reporter/user_collector.cc b/crash_reporter/user_collector.cc index 4afad4356..f6841e623 100644 --- a/crash_reporter/user_collector.cc +++ b/crash_reporter/user_collector.cc @@ -107,7 +107,7 @@ std::string UserCollector::GetPattern(bool enabled) const { // the size of the invocation line for crash_reporter, since the kernel // has a fixed-sized (128B) buffer for it (before parameter expansion). // Note that the kernel does not support quoted arguments in core_pattern. - return StringPrintf("|%s --user=%%p:%%s:%%u:%%e", our_path_.c_str()); + return StringPrintf("|%s --user=%%P:%%s:%%u:%%e", our_path_.c_str()); } else { return "core"; } diff --git a/crash_reporter/user_collector_test.cc b/crash_reporter/user_collector_test.cc index d416a7bbd..eed6dafa0 100644 --- a/crash_reporter/user_collector_test.cc +++ b/crash_reporter/user_collector_test.cc @@ -71,7 +71,7 @@ class UserCollectorTest : public ::testing::Test { TEST_F(UserCollectorTest, EnableOK) { ASSERT_TRUE(collector_.Enable()); - ExpectFileEquals("|/my/path --user=%p:%s:%u:%e", "test/core_pattern"); + ExpectFileEquals("|/my/path --user=%P:%s:%u:%e", "test/core_pattern"); ExpectFileEquals("4", "test/core_pipe_limit"); ASSERT_EQ(s_crashes, 0); EXPECT_TRUE(FindLog("Enabling user crash handling"));