Up to [cvs.NetBSD.org] / src / libexec / utmp_update
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-2-0-1-RELEASE
Revision 1.6 / (download) - annotate - [select for diffs], Wed Feb 26 18:16:50 2003 UTC (21 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Changes since 1.5: +40 -22
lines
Diff to previous 1.5 (colored)
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.