freebsd-dev/usr.bin/login
Ed Schouten 95e7b94a05 Don't strip TTY device name to the last '/'.
We've seen this bug in other applications before: we have some
applications that use strrchr(tty, '/') on the TTY device name. This
isn't valid when using pts(4), because the device name will be stripped
to "0" instead of "pts/0".

This fixes issues with login(1) ignoring /etc/ttys and missing utmp
records.

Reported by:	Barney Cordoba <barney_cordoba yahoo com>
Reviewed by:	rwatson
2009-03-27 19:13:36 +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 Use NULL instead of 0 for the return value of fopen(). 2007-09-21 01:55:11 +00:00
login.1 Add a cross-reference to newgrp(1). 2007-11-30 11:02:36 +00:00
login.c Don't strip TTY device name to the last '/'. 2009-03-27 19:13:36 +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
README

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$