summaryrefslogtreecommitdiff
path: root/init/ueventd_parser.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-04-08 01:09:24 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-04-08 01:09:24 +0000
commitcde61b64a3d332a491444990eae47100c348ee48 (patch)
tree91c0922ecfff4f85c8f80d0955a5bf70fd87b816 /init/ueventd_parser.cpp
parent98be3062a46117738128efcd4b219f9f3f94ec47 (diff)
parentbef1e8b472ff100fc5df88dbd8f81f2b25c28392 (diff)
Snap for 7266202 from bef1e8b472ff100fc5df88dbd8f81f2b25c28392 to sc-release
Change-Id: I07d9dd761b023e10d71347d769788315f9bfb6ae
Diffstat (limited to 'init/ueventd_parser.cpp')
-rw-r--r--init/ueventd_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/ueventd_parser.cpp b/init/ueventd_parser.cpp
index cab988bb3..2221228d1 100644
--- a/init/ueventd_parser.cpp
+++ b/init/ueventd_parser.cpp
@@ -106,10 +106,10 @@ Result<void> ParseExternalFirmwareHandlerLine(
}
if (std::find_if(external_firmware_handlers->begin(), external_firmware_handlers->end(),
- [&args](const auto& other) { return other.devpath == args[2]; }) !=
+ [&args](const auto& other) { return other.devpath == args[1]; }) !=
external_firmware_handlers->end()) {
return Error() << "found a previous external_firmware_handler with the same devpath, '"
- << args[2] << "'";
+ << args[1] << "'";
}
passwd* pwd = getpwnam(args[2].c_str());