summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger
Commit message (Collapse)AuthorAgeFilesLines
* 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
* .publickey -> .pubkey to match other finger daemons.des2001-01-043-4/+4
| | | | Suggested by: assar
* Add support for a .publickey file.des2000-12-293-4/+9
| | | | | Submitted by: Svein Skogen <tds@nsn.no> Reviewed by: brian, ru
* If the utmp login time is greater than the tty atime, use it to calculatebrian2000-12-211-1/+7
| | | | | | | | | the idle time instead of the atime. This makes entries for people that have logged in but done nothing else show up correctly. Reviewed by: markk@knigma.org
* Prepare for mdoc(7)NG.ru2000-12-191-2/+2
|
* Document what Idle=* means in a short format display.ru2000-12-121-0/+3
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-9/+9
|
* The -o is the default for "short" display, not the -h.ru2000-10-241-3/+4
|
* -Wall cleanup.ru2000-10-233-13/+10
| | | | PR: 22187
* Do not allow `finger -m /somefile' as well.ru2000-10-051-3/+3
|
* Don't allow finger /somefile, only allow filname expansions frombrian2000-10-021-0/+10
| | | | | | inside /etc/finger.conf PR: 21704
* Don't assume ai0->ai_canonname will always be filled in. Print thewollman2000-09-241-1/+6
| | | | | | user-supplied host name if we can't get a canonical name. Obtained from: contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)
* Implement IPv6 support. Also restructure the way multi-homed hostswollman2000-09-221-57/+91
| | | | are treated, regardless of protocol.
* Delete a bogus reference to T/TCP -- the problem still exists on Standardwollman2000-09-221-3/+1
| | | | TCP.
* Don't drop out when we've processed argc - 1 names.... argumentsbrian2000-09-121-7/+3
| | | | | | may expand to more than one user. PR: 21228
* Finger.conf first appeared in 4.2 (now that it's been MFCd)brian2000-08-251-1/+1
|
* Fix the -m option - broken by the last commit.brian2000-08-251-1/+1
| | | | Submitted by: Mark Knight <markk@knigma.org>
* Add a missing comma.sheldonh2000-08-251-1/+1
|
OpenPOWER on IntegriCloud