commit | d5cd30638f49c4ff16f37cb9e24430c6bc474eea | [log] [tgz] |
---|---|---|
author | Jorge Lucangeli Obes <jorgelo@google.com> | Thu Jan 12 15:42:22 2017 -0500 |
committer | Mark Salyzyn <salyzyn@google.com> | Fri Jan 13 15:43:45 2017 +0000 |
tree | 8844c7a6a91372a49c4b5022a71c76feefcb1b81 | |
parent | 0172d94f4d6f8ad77743b1b1b14569e32a95a292 [diff] |
Check the return value of setuid(2). I'd like to mark setuid() WARN_UNUSED_RESULT to prevent security bugs. This line would break because the file is compiled with -Werror. Bug: 34251640 Test: Build, run unit test. Change-Id: Ibb6fa5e5b899d47f77f2a32da762165de310101d