Subject: CVS commit: src/libexec/utmp_update
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 02/26/2003 20:16:50
Module Name: src
Committed By: christos
Date: Wed Feb 26 18:16:50 UTC 2003
Modified Files:
src/libexec/utmp_update: utmp_update.c
Log Message:
The following changes make ftpd able to remove its own entries. Ftpd
calls pututxline() with ruid = 0, euid = current-ftp-user. This ends
up calling update_utmp:
- if the real uid is root, don't do password or tty ownership checks
- if we cannot open the tty line, assume that it is a daemon that does
not use ttys and allow it to change a live entry to a dead one if
indeed it is the same process that created the entry.
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/libexec/utmp_update/utmp_update.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.