summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ac (follow)
Commit message (Collapse)AuthorAgeFilesLines
* correct history ac was in v5jsg2020-02-081-3/+3
|
* We can safely assume that our utmp(5) file format implementation can guaranteemestre2018-08-231-1/+2
| | | | | | | | | | | | | space for the NUL character, nevertheless there will always be some piece of software that can get it wrong and corrupt the database, so we must take this into consideration. That being said, there is one strlcpy(3) that needs to be reverted back into strncpy(3) + '\0' since if we try to use a bogus wtmp(5) file with ac(8) that is big enough then the NUL char is not verified and it will write memory out-of-bounds which will make the program crash. discussed with and OK cheloha@ deraadt@
* Since we can feed localtime(3) with garbage input, or with input it cannotmestre2018-08-201-0/+4
| | | | | | | | | interpret, we always need to check its return value, and in the case it's NULL then error and exit before proceeding further otherwise in this specific program we would find a null dereference down the road which would make the program segfault. OK cheloha@
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-261-2/+1
| | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
* pledge to only use "stdio rpath"; rpath is for readig the wtmp files.deraadt2015-10-121-0/+3
| | | | ok doug
* clean up flags++ instances around getopt()deraadt2015-02-091-1/+1
| | | | ok florian
* Update license to two-clause BSD. Permission to do so was grantedmillert2012-08-311-12/+24
| | | | by the authors as per Ed Schouten.
* add an EXIT STATUS section for /usr/sbin;jmc2010-09-031-4/+4
|
* Remove the non-standard, commented out, -c option.millert2010-07-043-97/+4
| | | | OK tedu@ jmc@ deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-4/+0
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* typos fixedtobias2009-04-261-3/+3
| | | | ok jmc
* the usage message should start with "usage:";sobrado2007-11-172-9/+8
| | | | | | | no need for "users", ellipsis allows various users to be specified; synchronize synopsis and usage ok jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* use .Ex;jmc2007-02-031-4/+2
|
* point to weekly(8);jmc2007-02-031-1/+6
| | | | ok/help ajacoutot
* - cope with recent weekly and newsyslog.conf changesajacoutot2007-02-021-19/+3
| | | | some review by jason@, ok mk@
* Change an int to size_tdhill2006-04-031-10/+7
| | | | | | | Remove NEW() Remove unused return value of add_tty() ok moritz@
* restructure the wtmp/newsyslog blurb slightly, to make this read better;jmc2005-11-171-12/+11
|
* rework the section on syncing log rotation on /etc/weekly, which ofjmc2005-11-161-20/+42
| | | | | | | | | course don't necessarily run together; pointed out by hugo villeneuve, and indeed the fix comes from him; also move the examples into an EXAMPLES section, and make FILES a little better too;
* clarify how wtmp is rotated, since it was rather misleading;jmc2005-11-121-5/+8
|
* 0 vs NULL, from Joris Vinktedu2004-03-181-4/+4
|
* spacingderaadt2004-01-211-13/+13
|
* ignore backwards going entriesmickey2003-07-201-2/+5
|
* some ansification, some de-registerderaadt2003-06-111-35/+15
|
* small typos;jmc2003-03-181-2/+2
| | | | ok miod@
* lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduderaadt2003-03-131-2/+2
|
* minor KNFderaadt2002-05-301-10/+10
|
* login(8) -> login(1)marc2002-03-131-2/+2
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-3/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-13/+13
|
* When you give command examples and etc., in a manual page prefix them with:mpech2002-02-131-3/+3
| | | | | | | | $ command or # command deraadt@ ok
* - Let '-' mean stdin.pvalchev2001-05-241-4/+9
| | | | | | - Correct usage message: -p and -d cannot be usefully used together. - Use __progname in usage() millert@ ok
* use strlcpy vs strncpy+a[n-1]='\0'mickey2001-05-051-7/+4
|
* Change all option list specifications to ".Bl -tag -width Ds". Most manaaron2000-11-091-2/+2
| | | | | pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
* Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some otheraaron2000-03-191-4/+5
| | | | cleanup along the way.
* Typo fixes.alex1999-09-231-2/+2
|
* - remove all trailing whitespaceaaron1999-07-091-2/+2
| | | | | | | | | | * except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
* remove trailing whitespace, some Nm cleanupaaron1999-06-051-13/+17
|
* usr.sbin/ man page repairs, a-iaaron1998-11-081-6/+6
|
* if user specified wtmp file, use timestamp on final record instead ofderaadt1997-10-091-2/+3
| | | | current system time for "end of run" time; tim@pool1.convey.ru
* $OpenBSD$deraadt1997-09-211-1/+1
|
* incorrect length in comparison; hubert.feyrer@rz.uni-regensburg.dederaadt1997-08-301-2/+2
|
* catch ptys correctly; tolik@www.tomsk.suderaadt1997-08-011-2/+2
|
* correct for our pty listderaadt1997-06-021-3/+3
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-2/+2
|
* Attempt at cleanup.michaels1996-10-081-2/+2
|
* fix warningsderaadt1996-08-291-2/+2
|
* initial import of NetBSD treederaadt1995-10-183-0/+740