commit | a2e70e09d07536c67a47492e9c3cd708f8cabdb4 | [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 | 1875ca7a36664b0660d8008040991517694726cb | |
parent | 40d8b5b40199527903cbd641fdd09c2cf06de53e [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