summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger
Commit message (Collapse)AuthorAgeFilesLines
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-4/+3
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Migrate finger(1) towards utmpx.ed2010-01-136-17/+9
| | | | | | It was already ported to use libulog, which makes it simpler now. Be sure to catch the error returned by setutxdb(). Otherwise it may perform a lookup on the utx.active database.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Migrate finger(1) away from <utmp.h>.ed2009-12-288-68/+54
| | | | | | | Unfortunately it also uses lastlog, which means we must resort to local extensions of the utmpx-interface. Because the user name and TTY name are now nul-terminated, there is no need to copy around strings as often.
* Plug a memory leak.delphij2009-12-211-0/+1
| | | | | | PR: bin/141836 Submitted by: Henning Petersen <henning.petersen at t-online.de> MFC after: 2 weeks
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-133-3/+3
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-113-3/+3
| | | | Tested with: make universe
* Restore the ".Sh BUGS" line that was accidentally removedru2007-04-121-0/+1
| | | | in the previous commit.
* Remove irrelevant comment about T/TCP in BUGS.des2007-04-111-8/+0
| | | | Spotted by: ru@
* Remove -T from getopt() spec and usage string.des2007-04-111-2/+2
| | | | Submitted by: ru@
* Bump Dd.des2007-04-111-1/+1
|
* Remove T/TCP support, and the -T option which was needed to disable it.des2007-04-114-16/+3
| | | | MFC after: 3 weeks
* Reduce number of spaces for full name by four, and reduce paddingrwatson2006-03-041-5/+5
| | | | | | | | | | | | | | | | | | | | | after tty entry by one space in order to provide extra spaces for the tty entry. As a result, full pts names are now visible (up to 999 pts's anyway): Before: Login Name TTY Idle Login Time Office Phone robert Robert Watson *v0 3:55 Fri 02:54 robert Robert Watson p0 19 Sat 11:01 robert Robert Watson pts Sat 14:55 After: Login Name TTY Idle Login Time Office Phone robert Robert Watson *v0 5:08 Fri 02:54 robert Robert Watson p0 8 Sat 11:01 robert Robert Watson pts/5 Sat 14:55 MFC after: 1 week
* Setting .nofinger will not hide you from root.dds2005-09-194-1/+6
|
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-211-1/+2
|
* Fixed the misplaced $FreeBSD$.ru2005-02-091-22/+22
|
* Sort sections.ru2005-01-181-6/+6
|
* Document incorrect handling of multibyte characters.tjr2004-07-171-1/+5
|
* Mechanically kill hard sentence breaks.ru2004-07-021-3/+6
|
* Remove spurious semicolons. Outside of functions they are actually errors butstefanf2004-05-161-1/+1
| | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5
* Add multiple inclusion guards. Mostly this is for extern.h, which wasjmallett2004-03-143-1/+10
| | | | | | | included twice by lprint.c, which included both finger.h and extern.h. finger.h, in turn, includes extern.h. The redundant include of extern.h was removed from lprint.c, as part of this change, but the include guards were added anyway out of spite.
* Fixed a misspelling of 0 as NULL.bde2004-03-141-1/+1
|
* Add code to keep going if you're really intent on fingering someone, butjmallett2003-06-282-4/+16
| | | | can't use utmp(5).
* If stat() on the terminal specified in utmp fails due to ENOENT, don'trwatson2003-04-023-2/+21
| | | | | | | | | print a warning, and set the idletime variable for the entry to -1; then pick up the -1 later in sprint() and lprint() and ignore those idle times by printing just whitespace. When third party applications, such as kdm, insert utmp entries, they sometimes use strings like ":0", which can't be stat()'d and currently result in warnings that are not helpful to the user.
* mdoc(7) police: Deal with self-xrefs.ru2002-12-241-1/+1
|
* Make a CR/LF sequence measure up to its name: the order of the CR and LFroam2002-12-021-1/+1
| | | | | | | | | | | characters was reversed, resulting in some network appliances, including at least some NAS devices from Ascend, not recognizing our finger(1) request. PR: 45914 Submitted by: J R Matthews <jrm@delta-e.com.au> Approved by: re (rwatson) MFC after: 2 weeks
* mdoc(7) police: bump document date, use the canonical option list width,ru2002-11-261-17/+11
| | | | | | removed a bunch of extraneous .Pp and .Dq calls. Approved by: re
* Back out previous commit - it was not well thought out.sobomax2002-10-311-1/+1
| | | | | Clue beaten in by: ume Pointy hat to: sobomax
* Fix POLA breakage in 1.29: IPv4 should be default. This makes `-4' optionsobomax2002-10-311-1/+1
| | | | | | | | a nop, but we'll probably want to keep it for compatibility with other KAME-based systems. Complained about by: Andrey Lakhno <land@dnepr.net> MFC after: 3 days
* ANSIify function definitions.dwmalone2002-09-046-62/+37
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* add -4 and -6 option to be able to specify an address family.ume2002-07-223-4/+22
| | | | | Requested by: matusita MFC after: 1 week
* Add -g option, which restricts printing of the gecos fields to just the user'smini2002-07-025-5/+23
| | | | | | | | | real name. PR: bin/39462 Submitted by: Mike Makonnen <makonnen@pacbell.net> Obtained from: NetBSD MFC after: 1 week
* Clean up malloc(3)'s argument. Remove casts which do nothing when we'rejmallett2002-05-171-2/+2
| | | | | | | using sizeof() anyway. Use slightly more consistent (per-file) error reporting for malloc(3) returning NULL. If "malloc failed" was being printed, don't use err(3). If a NULL format is being used, use err(3). In one case errx(3) was being used with strerror(3), so just use err(3).
* Use `The .Nm utility'charnier2002-04-191-9/+10
|
* remove __Pimp2002-03-225-23/+23
|
* Unremoved used includes. <sys/time.h> is needed if <sys/stat.h> isn'tbde2002-02-251-0/+2
| | | | | polluted, and <sys/types.h> is strictly a prerequisite for <sys/stat.h> untiil we drop support for pre-2001 versions of POSIX.
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* GRR. Unbreak WARNS=2.peter2002-02-081-1/+1
| | | | | | | | | cc1: warnings being treated as errors usr.bin/finger/lprint.c: In function `lprint': usr.bin/finger/lprint.c:191: warning: precision is not type int (arg 2) *** Error code 1 Pointy hat to: markm
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-105-25/+30
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* WARNS=2 fix, remove 'register' and use __FBSDID().markm2001-12-027-72/+77
|
* Replace the condemned access(2) by stat(2),yar2001-08-081-1/+2
| | | | as per the discussion in -audit.
* Don't use ".nofinger" as a string constant from within the codeyar2001-07-302-1/+3
| | | | since there is the ``pathnames.h'' file; use _PATH_NOFINGER instead.
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).ru2001-07-061-1/+1
|
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* MAN[1-9] -> MAN.ru2001-03-271-2/+1
|
* Don't attempt to parse %cache2001-03-214-34/+56
|
* MAXPATHLEN is enough.imp2001-03-011-2/+1
| | | | | Also, snprinf is guaranteed by the new ansi standard to NUL terminate the string, so we don't need to do that ourselves.
* Spellingcharnier2001-02-066-50/+25
| | | | Remove unused #includes
* Check strdup() return valuesjedgar2001-01-201-4/+8
| | | | Reviewed by: kris
OpenPOWER on IntegriCloud