commit | f4ae42f6a83cd4edaf90df4f509550e4690d6998 | [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 | dc4081316760ace4428e1a22034fa02e0f851e4f [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