commit | eedbe81f753fd19e5eb2238187c5618e9153bf55 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Sat Apr 25 14:10:03 2015 -0700 |
committer | Nick Kralevich <nnk@google.com> | Sat Apr 25 15:36:13 2015 -0700 |
tree | 2fb2d3873af5cc7fae38b5b55261800358a8ca86 | |
parent | 8929c77ab9aa9be612291809669e9162837c54ae [diff] |
init: fix write_file checkreqprot logic error write_file() returned -errno on error, not -1. Callers who check for -1 would falsely believe that the write was successful when it wasn't. Fixup write_file so that it return -1 on error consistent with other functions. Change-Id: Ic51aaf8678d8d97b2606bd171f11b3b11f642e39