Merge "Check the return value of setuid(2)."

This commit is contained in:
Treehugger Robot 2017-01-13 17:48:07 +00:00 committed by Gerrit Code Review
commit 155d2bcb7a

View file

@ -1831,7 +1831,7 @@ TEST(liblog, __security_buffer) {
return;
}
setuid(AID_SYSTEM); // only one that can read security buffer
EXPECT_EQ(0, setuid(AID_SYSTEM)); // only one that can read security buffer
pid_t pid = getpid();