commit | ebe293ab54472f5adf6189edbaa1e73939320b66 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 15:24:30 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 15:54:52 2019 +0900 |
tree | 25ba5d14f9743f84d09b2d35b7b6dc26ef8f1586 | |
parent | 32a8a47b070047fd0970db2b3f4cf6b87fdf8565 [diff] |
Fix bogus error checking on unique_fd The expression "!fd" calls the implicit conversion to int, but comparing the raw fd against 0 does not work, since open() and other POSIX calls returning a file descriptor use -1 to signal an error. Test: m vold Change-Id: I0847c276f39cb9dd09c7ffb96951276113418fc8