aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lastlogin
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: alt one-line .c patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+1
|
* pkgbase: Put accounting utilities in the acct packageEmmanuel Vadot2022-08-161-0/+1
|
* A single comma was missing to separate the "see also" items inBenedict Reuschling2018-10-201-1/+1
| | | | | | | | | | last.1 and lastlogin.8. Add it back. PR: 231187 Submitted by: david.marec@davenulle.org Notes: svn path=/head/; revision=339450
* Add libxo(3) support to lastlogin(8).Philip Paeps2018-08-283-8/+42
| | | | | | | | | | | Reviewed by: kp Approved by: re (gjb) MFC after: 1 week Relnotes: yes Differential Revision: https://reviews.freebsd.org/D16919 Notes: svn path=/head/; revision=338353
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Allow custom files to be opened and allow sorting by timestamp.Ed Schouten2011-06-062-18/+60
| | | | | | | | | | | While implementing a tool to import lastlog entries into utmpx, I noticed lastlogin doesn't allow custom database files to be opened. Add a -f switch to support this. Also, add -r and -t similar to ls(1), ruptime(1), etc. where you can sort entries by timestamp and reverse them. This allows you to spot active/idle users more easily. Notes: svn path=/head/; revision=222767
* Don't forget to catch realloc() errors.Ed Schouten2010-04-111-1/+4
| | | | Notes: svn path=/head/; revision=206472
* Alphabetically sort the output of lastlogin(8).Ed Schouten2010-04-112-4/+22
| | | | | | | | | | | | According to the manpage, the entries have to be sorted by uid. This is no longer possible, since our utmpx implementation is completely unaware of user IDs. You can safely add entries for multiple users sharing the same uid. Make the output less random by sorting everything by name. Notes: svn path=/head/; revision=206471
* Chop off excessive long hostnames to keep the table structure intact.Ed Schouten2010-03-201-1/+1
| | | | | | | This makes lastlogin(8) use exactly the same printf format as last(1). Notes: svn path=/head/; revision=205365
* Remove unneeded setpassent() calls.Ed Schouten2010-01-241-4/+0
| | | | | | | lastlogin no longer requires the use of the passwd database. Notes: svn path=/head/; revision=202928
* Remove stale references to utmp(5) and its corresponding filenames.Ed Schouten2010-01-211-3/+3
| | | | | | | I removed utmp and its manpage, but not other manpages referring to it. Notes: svn path=/head/; revision=202756
* Port lastlogin(8) to utmpx.Ed Schouten2010-01-132-17/+14
| | | | | | | | | While there, fix a bug I introduced previously. We must reopen the database for each username passed on the command line. We must rewind the database and search from the beginning. Notes: svn path=/head/; revision=202205
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* ANSIfy almost all applications that use WARNS=6.Ed Schouten2009-12-291-4/+2
| | | | | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application. Notes: svn path=/head/; revision=201227
* Several refinements to libulog's API.Ed Schouten2009-12-261-1/+1
| | | | | | | | | | | | - Only set the fields in the ulog_utmpx structure that are valid for the command in question. This means that strings like "shutdown" or "~" are not visible to the user anymore. - Rename UTXF_* to UTXI_*, indicating the indexation, instead of using the `antique' filename. If we ever get rid of utmp, it makes little sense calling it by its old name. Notes: svn path=/head/; revision=201033
* Port lastlogin(1) to libulog.Ed Schouten2009-12-092-43/+21
| | | | | | | | Just use ulog_getutxuser() to obtain lastlog records or ulog_getutxent() to browse through all of them. Notes: svn path=/head/; revision=200303
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131500
* The .Nm utilityPhilippe Charnier2002-07-141-2/+4
| | | | Notes: svn path=/head/; revision=99968
* de-__P()Alfred Perlstein2002-07-111-3/+3
| | | | Notes: svn path=/head/; revision=99800
* Fixed some world breakage caused by not updating clients when <timeconv.h>Bruce Evans2002-07-081-0/+1
| | | | | | | | was split off from <time.h>. This became fatal here when -Werror was reenabled. Notes: svn path=/head/; revision=99604
* Don't depend on <pwd.h> to bogusly include <sys/types.h>.Mike Barcroft2002-06-091-0/+1
| | | | Notes: svn path=/head/; revision=98069
* I've been meaning to do this for a while. Add an underscore to theMatthew Dillon2002-01-191-1/+1
| | | | | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee. Notes: svn path=/head/; revision=89572
* Fix ctime(&int) due to change to lastlog->ll_timeMatthew Dillon2001-10-291-1/+2
| | | | Notes: svn path=/head/; revision=85651
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-1/+2
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$Dima Dorfman2001-06-301-1/+1
| | | | | | | | | where necessary. Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79011
* Include stdlib.h for exit(3).Dima Dorfman2001-06-241-0/+1
| | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78719
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532
* mdoc(7) cosmetics.Ruslan Ermilov2000-12-111-6/+6
| | | | | | | Submitted by: sheldonh Notes: svn path=/head/; revision=69851
* Remove unused #includes, duplicate $FreeBSD$ and $NetBSD$ definitions.Philippe Charnier2000-12-101-7/+1
| | | | | | | Reviewed by: Ruslan Ermilov <ru@FreeBSD.org> Notes: svn path=/head/; revision=69828
* Added the lastlogin utility.Ruslan Ermilov2000-11-143-0/+219
Obtained from: NetBSD Notes: svn path=/head/; revision=68723