History log of /netbsd-src/lib/libc/gen/getpass.c (Results 1 – 25 of 30)
Revision Date Author Comments
# 8397619c 31-Jan-2016 christos <christos@NetBSD.org>

PR/50695: coypu: ctrl-c in su password input breaks shell (bash, csh)
Always restore the tty settings.


# 9a513d96 18-Sep-2014 christos <christos@NetBSD.org>

make more descriptors that we open as close-on-exec


# 1913c941 16-Jun-2014 christos <christos@NetBSD.org>

Recognize CR as end of line too. the telnet client passes that to us instead
of linefeed.


# 8f44324e 26-May-2012 christos <christos@NetBSD.org>

make getpass and getpass_r print a newline like they did before.


# b7d29129 02-May-2012 christos <christos@NetBSD.org>

test for both NUL and _POSIX_VDISABLE, because _POSIX_VDISABLE propagation
between different daemons and OS's does not seem reliable.


# 3765cebf 14-Apr-2012 christos <christos@NetBSD.org>

- If fd == NULL, do the dance with opening /dev/tty
- Add a flag to enter a newline when we are done.


# d6d7452b 13-Apr-2012 christos <christos@NetBSD.org>

prefer ETIMEDOUT.


# 77cac556 13-Apr-2012 christos <christos@NetBSD.org>

add timeout.


# 98ba7d20 13-Apr-2012 christos <christos@NetBSD.org>

- don't update the length of the buffer until the allocation succeeds
- print only printable characters otherwise print '?'


# 4e156f33 13-Apr-2012 christos <christos@NetBSD.org>

unconfuse lint; XXX: should really fix lint.


# 311b90b9 12-Apr-2012 christos <christos@NetBSD.org>

add GETPASS_ECHO_STAR


# 969c948d 12-Apr-2012 christos <christos@NetBSD.org>

add getpassfd() that gives us even more fine grain control on how to get
the password.


# 10fa0b64 12-Apr-2012 christos <christos@NetBSD.org>

raise signals for the tty characters that do.


# 48c7acbc 12-Apr-2012 christos <christos@NetBSD.org>

Add a new getpass implementation that does not mess with signals, and
include getpass_r


# 8bb17685 01-Jan-2008 christos <christos@NetBSD.org>

block signals before playing with files. From Anon Ymous


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# 60549036 22-Jan-2000 mycroft <mycroft@NetBSD.org>

Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attemp

* use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif

show more ...


# 4146d586 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# 43fa6fe3 21-Jul-1997 jtc <jtc@NetBSD.org>

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

show more ...


# 3e458a62 13-Jul-1997 christos <christos@NetBSD.org>

Fix RCSID's
Fix gcc warning


# 9647f42d 20-May-1996 jtc <jtc@NetBSD.org>

Signal mask was not restored correctly.
Fix from James Chacon <jmc@pobox.com> in PR #2442.


# b2459dac 16-May-1996 christos <christos@NetBSD.org>

Use the POSIX signal mask interface


# edbbf562 16-Jun-1995 jtc <jtc@NetBSD.org>

<sys/termios.h> -> <termios.h>


# 88ba3f85 28-Feb-1995 jtc <jtc@NetBSD.org>

Changed <sys/signal.h> to <signal.h>


12