git_mkstemps: correctly test return value of open()
open() returns -1 on failure, and indeed 0 is a possible success value if the user closed stdin in our process. Fix the test. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
62e91efafd
commit
a2cb86c152
Loading…
Reference in New Issue
Block a user