[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] Re: getpass.h
From: |
Simon Josefsson |
Subject: |
[Bug-gnulib] Re: getpass.h |
Date: |
Tue, 10 Aug 2004 10:30:12 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Paul Eggert <address@hidden> writes:
> Thanks. I installed that, with two further changes. First,
> getpass.c should include getpass.h (to test the interface), and
> it should include it first (to catch unwanted dependencies on
> other headers). Second, this line:
>
> extern char *getpass (const char *prompt)
>
> was missing a semicolon, so I added it. I took the liberty of
> removing the "extern" since I prefer omitting obvious redundancies (if
> this bugs you please let me know and I'll put it back in).
Thanks!
> coreutils currently uses getpass.c but I think we'll phase that out,
> as the only program that uses it is su.c, and we're thinking of
> removing su.c (nobody uses coreutils su any more, right?).
Before using gnulib's getpass, I actually wrote a module getpassword
which did the same as getpass-gnu, but didn't use the obsolete POSIX
getpass interface. Perhaps it would be cleaner to rename getpass-gnu
to getpassword (or something), and fully deprecate getpass everywhere.
Thanks,
Simon