bug-gnu-pw-mgr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnu-pw-mgr] Another use case for web login


From: Bruce Korb
Subject: Re: [Bug-gnu-pw-mgr] Another use case for web login
Date: Wed, 08 Jan 2014 10:48:33 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9

Hello,

Thanks for useful program.

Hi,
Thank you.

gnu-pw-mgr can be used [as a GUI program] with a helper program.  We will be
able to have a GUI program which asks user password identifier by its
dialog box and it invokes gnu-pw-mgr, and then, it puts generated
password to the window that had focus.

That would be great!  I've done essentially no GUI development during my
career, so any help there would be appreciated.

Currently, the function stdin_pwid in gnu-pw-mgr.c assumes that
stdin/stdout is connected to TTY when it reads password identifier.
Could we remove this restriction, so that gnu-pw-mgr can be used by a
program (with no need to allocate pty)?

I'm talking about the line 357-358:

    if (! isatty(STDIN_FILENO) || ! isatty(STDOUT_FILENO))
        usage_message( no_pwid_fmt);

What do you think?

Sure.  Makes sensse.  Either isatty(), or S_ISFIFO(statbuf.st_mode)?
Probably easier to just remove the restriction.  Can't see it being a
big problem.

Thanks! - Bruce

[1] https://identi.ca/gniibe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]