summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nologin/nologin.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __unused macro instead of a bare void for main().delphij2005-01-041-1/+1
| | | | Suggested by: nectar
* nologin(8) does not seem to require any command line parameters,delphij2005-01-041-2/+2
| | | | | | | | | | | | so remove argc and argv from main() argument. At the same time, user and tt is not likely to be changed during execution so mark them const. This commit should guarantee nologin to pass WARNS=6. Tested on: i386 MFC After: 1 month
* Add standard copyright notice; fix style bugs. (Reported by bde)cperciva2004-03-131-9/+26
| | | | Remove NO_NOLOGIN_LOG option now that we're off the root partition.
* Report login attempts to syslog. Due to the statically-linked nature ofcperciva2004-02-221-1/+14
| | | | | | | | | | | nologin(8), this causes a considerable (100K) increase in the binary size, so I've added a NO_LOGIN_LOG option which disables this. While I'm here, s/sizeof(MESSAGE)/sizeof(MESSAGE) - 1/, in order to avoid writing the string-terminating zero byte. No complaints from: -current Approved by: rwatson (mentor)
* Reimplement nologin(8) as a C program. This allows us to staticallydas2003-11-171-0/+21
link it at low cost and avoid environment poisoning attacks associated with LD_LIBRARY_PATH. Suggested by: rwatson
OpenPOWER on IntegriCloud