summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger
Commit message (Collapse)AuthorAgeFilesLines
* Use NULL instead of 0 for pointers.araujo2016-04-181-2/+2
| | | | | | | strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
* Do not truncate office phones in finger's summary listinglidl2016-03-141-1/+1
| | | | | | | | | | | | When finger is invoked as as "finger username", it produces the long listing by default, and phones numbers are pretty-printed by the prphone() function. When invoked as just "finger", the same pretty-printing happens, but is truncated at 9 characters. Given the summary listing is already greater than 80 columns, making it even wider is of no harm. Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D5638
* Fix printing multibyte printing when performing a networked finger(1) requestbapt2016-01-181-6/+7
| | | | MFC after: 1 week
* Add META_MODE support.sjg2015-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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Updated dependenciessjg2013-03-111-0/+1
| |
| * Updated dependenciessjg2013-02-161-2/+0
| |
| *-. Sync from headsjg2012-11-042-2/+3
| |\ \ | |/ / |/| |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| |/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | More -Wmissing-variable-declarations fixes.ed2012-10-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* | Bump date missed in r202756eadler2012-09-141-1/+1
|/ | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-1/+1
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Spelling fixes for usr.bin/uqs2011-12-301-2/+2
|
* Build finger(1) with WARNS=6.ed2011-10-142-3/+1
|
* Staticify cleanup() which is not referenced in other places.delphij2011-06-211-1/+1
| | | | MFC after: 2 weeks
* Check return code of setuid() and setgid() in finger.simon2011-04-231-4/+8
| | | | | | | While they will not fail in normal circumstances, better safe than sorry. MFC after: 1 week
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-118-32/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* 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
OpenPOWER on IntegriCloud