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
Loading
Please register or sign in to comment