commit | 0e8a6a6e1159f6ae9d44daf3ce2834f64da941fc | [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 | d27dad628ae41e0386c90d08639b464dc8d6bd27 [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