On 02/06/2006 Tobias Gruetzmacher wrote:
> On Fri, Jun 02, 2006 at 02:42:52PM +0200, Jonas Meurer wrote:
> > ok, i prepared a fix, and uploaded i386 packages (1.0.3-2) to
> > http://people.debian.org/~mejo/cryptsetup/
> > 
> > tobias, could you check if these fix your bug?
> 
> No, it does not. I think the problem is that the previously used getpass
> wrote directly to /dev/tty, therefore circumventing input/output
> redirection of the parent process. I think pmount redirects stdout
> somewhere and the password prompt of cryptsetup gets lost. I suspect
> this is really a pmount bug and not a problem with cryptsetup...

i'm not sure about that. the cryptsetup prompt is a critical output, it
should always appear, even if stdout and stderr are redirected.

i think that this is the reason why getpass was used before.

david: are you capable of writing a patch that reverts this, and writes
the prompt directly to /dev/tty again?
maybe STDERR just needs to be changed to /dev/proc/self/fd/0?

and stderr is still a better solution than stdout, don't you think so?

...
 jonas

Attachment: signature.asc
Description: Digital signature

Reply via email to