freebsd-dev/usr.bin/login
Sean Farley 2966d28c32 Significantly reduce the memory leak as noted in BUGS section for
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.

Convert all calls to POSIX from historic BSD API:
 - unsetenv returns an int.
 - putenv takes a char * instead of const char *.
 - putenv no longer makes a copy of the input string.
 - errno is set appropriately for POSIX.  Exceptions involve bad environ
   variable and internal initialization code.  These both set errno to
   EFAULT.

Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit.  A few I re-wrote to use setenv()
instead of putenv().

New regression module for tools/regression/environ to test these
functions.  It also can be used to test the performance.

Bump __FreeBSD_version to 700050 due to API change.

PR:		kern/99826
Approved by:	wes
Approved by:	re (kensmith)
2007-07-04 00:00:41 +00:00
..
login_audit.c Fix some warnings by making things const, adding missing headers, 2007-05-07 11:01:36 +00:00
login_fbtab.c Fix some warnings by making things const, adding missing headers, 2007-05-07 11:01:36 +00:00
login.1 Markup fixes. 2006-09-29 15:20:48 +00:00
login.c Significantly reduce the memory leak as noted in BUGS section for 2007-07-04 00:00:41 +00:00
login.h Fix some warnings by making things const, adding missing headers, 2007-05-07 11:01:36 +00:00
Makefile Teach login(1) about the make.conf NO_AUDIT variable. This allows us to 2006-12-13 06:13:32 +00:00
pathnames.h login(1) no longer handles /etc/login.access by itself, 2006-03-06 12:38:42 +00:00
README Remove the last reference to LOGIN_ACCESS from login(1). 2006-03-06 12:56:35 +00:00

This login has additional functionalities. They are all based on (part of)
Wietse Venema's logdaemon package.


The following defines can be used:

- LOGALL to log all logins


-Guido

$FreeBSD$