mirror of
https://github.com/golang/term.git
synced 2026-01-29 15:12:09 +03:00
189f313d0caebef915a85507ed977b82d46bc2df
os.NewFile assigns finalizer to close file handle passed into ReadPassword. But that is not expected. Make a duplicate of original file handle, and pass copy handle into ReadPassword instead. Fixes golang/go#23525 Change-Id: I4d6725e9a1cc20defd1b58afc383e35a7f9ee4e9 Reviewed-on: https://go-review.googlesource.com/89395 Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Description
Languages
Go
100%