Re: [PATCH] (Windows) psql echoes password when reading from pipe - Mailing list pgsql-hackers

From Matthew Stickney
Subject Re: [PATCH] (Windows) psql echoes password when reading from pipe
Date
Msg-id c3d315f2-c1dc-18ce-29fa-7919dace540e@gmail.com
Whole thread Raw
In response to Re: [PATCH] (Windows) psql echoes password when reading from pipe  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] (Windows) psql echoes password when reading from pipe
List pgsql-hackers
The attached is a patch that uses the _fileno/_get_osfhandle approach. 
This doesn't address the stdin fallback, or error handling if opening 
termin fails; however, it should be no worse than what's there now, and 
it fixes the immediate problem.

I'm still thinking about the fallback in terms of a mintty-type 
environment, but I wanted to get this patch out there in the meantime.

-Matt Stickney

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: printf format selection vs. reality
Next
From: Robbie Harwood
Date:
Subject: Re: [PATCH v14] GSSAPI encryption support