commit | e1e790c19cfa5203353ed52b04d7e646eba99b34 | [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 | 5d0641d93743d4f5519124e70f1ea8fb1d569768 [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