272461 |
03-Oct-2014 |
gjb |
Copy stable/10@r272459 to releng/10.1 as part of the 10.1-RELEASE process.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
241737 |
19-Oct-2012 |
ed |
More -Wmissing-variable-declarations fixes.
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'.
|
240506 |
14-Sep-2012 |
eadler |
Bump date missed in r202756
PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
|
229403 |
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
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.
|
228992 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.bin/
|
226358 |
14-Oct-2011 |
ed |
Build finger(1) with WARNS=6.
|
223374 |
21-Jun-2011 |
delphij |
Staticify cleanup() which is not referenced in other places.
MFC after: 2 weeks
|
220971 |
23-Apr-2011 |
simon |
Check return code of setuid() and setgid() in finger.
While they will not fail in normal circumstances, better safe than sorry.
MFC after: 1 week
|
216370 |
11-Dec-2010 |
joel |
Remove the advertising clause from UCB copyrighted files in usr.bin. This 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
|
202756 |
21-Jan-2010 |
ed |
Remove stale references to utmp(5) and its corresponding filenames.
I removed utmp and its manpage, but not other manpages referring to it.
|
202191 |
13-Jan-2010 |
ed |
Migrate finger(1) towards utmpx.
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.
|
201386 |
02-Jan-2010 |
ed |
Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
|
201140 |
28-Dec-2009 |
ed |
Migrate finger(1) away from <utmp.h>.
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.
|
200793 |
21-Dec-2009 |
delphij |
Plug a memory leak.
PR: bin/141836 Submitted by: Henning Petersen <henning.petersen at t-online.de> MFC after: 2 weeks
|
200462 |
13-Dec-2009 |
delphij |
Revert most part of 200420 as requested, as more review and polish is needed.
|
200420 |
11-Dec-2009 |
delphij |
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
|
168657 |
12-Apr-2007 |
ru |
Restore the ".Sh BUGS" line that was accidentally removed in the previous commit.
|
168636 |
11-Apr-2007 |
des |
Remove irrelevant comment about T/TCP in BUGS.
Spotted by: ru@
|
168635 |
11-Apr-2007 |
des |
Remove -T from getopt() spec and usage string.
Submitted by: ru@
|
168633 |
11-Apr-2007 |
des |
Bump Dd.
|
168632 |
11-Apr-2007 |
des |
Remove T/TCP support, and the -T option which was needed to disable it.
MFC after: 3 weeks
|
156282 |
04-Mar-2006 |
rwatson |
Reduce number of spaces for full name by four, and reduce padding 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
|
150316 |
19-Sep-2005 |
dds |
Setting .nofinger will not hide you from root.
|
146466 |
21-May-2005 |
ru |
Sync program's usage() with manpage's SYNOPSIS.
|
141580 |
09-Feb-2005 |
ru |
Fixed the misplaced $FreeBSD$.
|
140420 |
18-Jan-2005 |
ru |
Sort sections.
|
132277 |
17-Jul-2004 |
tjr |
Document incorrect handling of multibyte characters.
|
131491 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
129302 |
16-May-2004 |
stefanf |
Remove spurious semicolons. Outside of functions they are actually errors but GCC doesn't warn about them without -pedantic.
Approved by: das (mentor) PR: 56649 Reviewed by: md5
|
126963 |
14-Mar-2004 |
jmallett |
Add multiple inclusion guards. Mostly this is for extern.h, which was 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.
|
126960 |
14-Mar-2004 |
bde |
Fixed a misspelling of 0 as NULL.
|
117010 |
28-Jun-2003 |
jmallett |
Add code to keep going if you're really intent on fingering someone, but can't use utmp(5).
|
112987 |
02-Apr-2003 |
rwatson |
If stat() on the terminal specified in utmp fails due to ENOENT, don't 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.
|
108257 |
24-Dec-2002 |
ru |
mdoc(7) police: Deal with self-xrefs.
|
107528 |
02-Dec-2002 |
roam |
Make a CR/LF sequence measure up to its name: the order of the CR and LF 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
|
107262 |
26-Nov-2002 |
ru |
mdoc(7) police: bump document date, use the canonical option list width, removed a bunch of extraneous .Pp and .Dq calls.
Approved by: re
|
106250 |
31-Oct-2002 |
sobomax |
Back out previous commit - it was not well thought out.
Clue beaten in by: ume Pointy hat to: sobomax
|
106245 |
31-Oct-2002 |
sobomax |
Fix POLA breakage in 1.29: IPv4 should be default. This makes `-4' option 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
|
102944 |
04-Sep-2002 |
dwmalone |
ANSIify function definitions. 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
|
100521 |
22-Jul-2002 |
ume |
add -4 and -6 option to be able to specify an address family.
Requested by: matusita MFC after: 1 week
|
99249 |
02-Jul-2002 |
mini |
Add -g option, which restricts printing of the gecos fields to just the user's real name.
PR: bin/39462 Submitted by: Mike Makonnen <makonnen@pacbell.net> Obtained from: NetBSD MFC after: 1 week
|
96785 |
17-May-2002 |
jmallett |
Clean up malloc(3)'s argument. Remove casts which do nothing when we're 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).
|
95083 |
19-Apr-2002 |
charnier |
Use `The .Nm utility'
|
92920 |
22-Mar-2002 |
imp |
remove __P
|
91226 |
25-Feb-2002 |
bde |
Unremoved used includes. <sys/time.h> is needed if <sys/stat.h> isn't polluted, and <sys/types.h> is strictly a prerequisite for <sys/stat.h> untiil we drop support for pre-2001 versions of POSIX.
|
90415 |
08-Feb-2002 |
markm |
Remove leaf node WARNS?=2 (that mainly I added). This should help the GCC3 transition and CURRENT in general.
|
90390 |
08-Feb-2002 |
peter |
GRR. Unbreak WARNS=2. 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
|
87628 |
10-Dec-2001 |
dwmalone |
Style improvements recommended by Bruce as a follow up to some 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.
|
87229 |
02-Dec-2001 |
markm |
WARNS=2 fix, remove 'register' and use __FBSDID().
|
81309 |
08-Aug-2001 |
yar |
Replace the condemned access(2) by stat(2), as per the discussion in -audit.
|
80649 |
30-Jul-2001 |
yar |
Don't use ".nofinger" as a string constant from within the code since there is the ``pathnames.h'' file; use _PATH_NOFINGER instead.
|
79535 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79366 |
06-Jul-2001 |
ru |
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
|
78718 |
24-Jun-2001 |
dd |
Include missing header files which define functions for which gcc has builtins (e.g., exit, strcmp).
|
74848 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
74586 |
21-Mar-2001 |
ache |
Don't attempt to parse %c
|
73260 |
01-Mar-2001 |
imp |
MAXPATHLEN is enough.
Also, snprinf is guaranteed by the new ansi standard to NUL terminate the string, so we don't need to do that ourselves.
|
72109 |
06-Feb-2001 |
charnier |
Spelling Remove unused #includes
|
71273 |
20-Jan-2001 |
jedgar |
Check strdup() return values
Reviewed by: kris
|
70655 |
04-Jan-2001 |
des |
.publickey -> .pubkey to match other finger daemons.
Suggested by: assar
|
70474 |
29-Dec-2000 |
des |
Add support for a .publickey file.
Submitted by: Svein Skogen <tds@nsn.no> Reviewed by: brian, ru
|
70242 |
21-Dec-2000 |
brian |
If the utmp login time is greater than the tty atime, use it to calculate 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
|
70197 |
19-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
69909 |
12-Dec-2000 |
ru |
Document what Idle=* means in a short format display.
|
68963 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
67483 |
24-Oct-2000 |
ru |
The -o is the default for "short" display, not the -h.
|
67467 |
23-Oct-2000 |
ru |
-Wall cleanup.
PR: 22187
|
66675 |
05-Oct-2000 |
ru |
Do not allow `finger -m /somefile' as well.
|
66563 |
02-Oct-2000 |
brian |
Don't allow finger /somefile, only allow filname expansions from inside /etc/finger.conf
PR: 21704
|
66315 |
24-Sep-2000 |
wollman |
Don't assume ai0->ai_canonname will always be filled in. Print the user-supplied host name if we can't get a canonical name.
Obtained from: contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)
|
66199 |
22-Sep-2000 |
wollman |
Implement IPv6 support. Also restructure the way multi-homed hosts are treated, regardless of protocol.
|
66198 |
22-Sep-2000 |
wollman |
Delete a bogus reference to T/TCP -- the problem still exists on Standard TCP.
|
65787 |
12-Sep-2000 |
brian |
Don't drop out when we've processed argc - 1 names.... arguments may expand to more than one user.
PR: 21228
|
65093 |
25-Aug-2000 |
brian |
Finger.conf first appeared in 4.2 (now that it's been MFCd)
|
65082 |
25-Aug-2000 |
brian |
Fix the -m option - broken by the last commit.
Submitted by: Mark Knight <markk@knigma.org>
|
65069 |
25-Aug-2000 |
sheldonh |
Add a missing comma.
|
65064 |
25-Aug-2000 |
brian |
Allow finger.conf to contain aliases for files that will be displayed when fingered.
Submitted by: Mark Knight <markk@knigma.org>
|
64790 |
17-Aug-2000 |
sheldonh |
Remove extraneous arguments to the Os (operating system) and Nm (name) macros.
Do not terminate the cross-reference list in the SEE ALSO section with a period.
|
64775 |
17-Aug-2000 |
brian |
Allow a /etc/finger.conf file that contains finger aliases This allows people who's email address differs from their account name to be fingerable.
Submitted by: Mark Knight <markk@knigma.org>
|
63007 |
12-Jul-2000 |
asmodai |
Backout previous commit. (Mental note: don't forget -rRELENG_4 next time.)
|
63006 |
12-Jul-2000 |
asmodai |
MFC: fix some output cosmetics so that the finger -s output is properly lined up
|
62937 |
11-Jul-2000 |
asmodai |
Fix finger -s output on an user who never logged in. This is purely a cosmetic patch.
PR: 9809 Submitted by: se Nagged about: nrahlstr
|
62891 |
10-Jul-2000 |
kris |
Don't call warn() with no format string.
|
57670 |
01-Mar-2000 |
sheldonh |
Remove single-space hard sentence breaks. These degrade the quality of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
|
50477 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50167 |
22-Aug-1999 |
imp |
Use the final version of the patch for the overflow, not the next to final.
Noticed by: eivind
|
50127 |
21-Aug-1999 |
imp |
Fix possible buffer overflow with finger and fingerd.
Submitted by: Lukasz Luzar <lluzar@noname.kki.krakow.pl> and Eivind Eklund <eivind@yes.no>
This patch is actually a combination of those two patches.
|
48566 |
04-Jul-1999 |
billf |
Clean up some ambiguous nested if/elses.
|
46662 |
08-May-1999 |
obrien |
Impliment elements of TCP Wrappers's `safe_finger'. * if run by root (or root process) drop privs * ensure output size is not infinate (net finger only) * ensure output lines are not infinate in length (net finger only) * do not allow finger client to run longer than 3 minutes (net finger only)
|
38164 |
07-Aug-1998 |
ache |
fix 8bit clean issue PR: 7519
|
36792 |
09-Jun-1998 |
imp |
Don't assume that hp->h_lenght == 4. Be conservative in its use. Submitted by: J. Assange a long time ago.
|
27836 |
01-Aug-1997 |
wollman |
Document the bogus standard requirement of delaying the close. Also include a reference to the FINGER RFC.
|
27835 |
01-Aug-1997 |
wollman |
So somebody actually found language in the FINGER RFC which requires implementations to leave the client side open until the server closes. While this is totally idiotic, it seems as if some servers actually require it (e.g., the one at mit.mit.edu). So, we bow to the weight of the bogus standard and disable the initial close. Hopefully now fetch(1) can serve the role of T/TCP demonstration application.
|
27169 |
02-Jul-1997 |
charnier |
Add rcsid, usage(). Silent -Wall. Use warn(3).
|
24360 |
29-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
23971 |
17-Mar-1997 |
ache |
Skip \r character while printing Plan/etc. text files, it allows to handle \r\n and \n\r files properly. Previous variant put ^M for \r\n and ^M\n for \n\r
|
23693 |
11-Mar-1997 |
peter |
Merge from Lite2
|
23691 |
11-Mar-1997 |
peter |
This commit was generated by cvs2svn to compensate for changes in r23690, which included commits to RCS files with non-trunk default branches.
|
20157 |
05-Dec-1996 |
ache |
Adjust line to not overflow 80 cols (result of recent utmp changes)
|
14631 |
15-Mar-1996 |
olah |
Allow the user to disable the use of T/TCP by setting the -T option. This option becomes useless when all TCP stacks are fixed out there.
|
14472 |
10-Mar-1996 |
ache |
Print 8bit chars from the net if current locale allows them
|
12909 |
17-Dec-1995 |
wollman |
Implement client-side transaction TCP. This has little effect if the server doesn't support it. (This is intended mostly as an example.)
|
11811 |
26-Oct-1995 |
ache |
Change locale to LC_ALL, there is no bitmask
|
11759 |
24-Oct-1995 |
ache |
Add setlocale LC_TIME|LC_CTYPE
|
11386 |
10-Oct-1995 |
peter |
Reverse out some of the previous commit I did, which shortened the finger output from 80 to 79 characters to stop the syscons every-second-line-is-blank problem.
Also, redo the TTY column mod so that it steals one of the (usually) two blank spaces from the before the tty column rather than from the office phone number.
This means the office phone field width in the short finger is back to 15 characters instead of 13.
|
10553 |
04-Sep-1995 |
peter |
Increase the tty column width from 2 to 3 characters.
This gives us more room to breath with tty names, especially with drivers that support large numbers of ports.. eg: specialix and digiboard.
This does not actually change the current tty names, it just allows room for reporting more characters if the drivers use them.
|
9994 |
08-Aug-1995 |
ache |
Allow national printable chars in .plan
|
9993 |
08-Aug-1995 |
ache |
Replace asctime/ctime by strftime %c to use national representation
|
9987 |
07-Aug-1995 |
wollman |
Delete bogus referneces to timezone code internal header file `tzfile.h', which is no longer bogusly installed in /usr/include.
|
9280 |
21-Jun-1995 |
ache |
Fix finger not check all users ~/.nofinger, only for actually matched. Close PR 539 Submitted by: tom@haven.uniserve.com
|
8874 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
7371 |
25-Mar-1995 |
joerg |
Make finger(1) accept "cua" to be also a tty, and use the suffix instead of the very meaningful string "cu" to describe the tty.
|
5369 |
04-Jan-1995 |
jkh |
Add Sean Eric Fagan's support for a ~/.nofinger file for user who prefer their privacy. Submitted by: sef
|
4991 |
05-Dec-1994 |
pst |
Remove extra newline introduced in 44lite (oops)
|
4990 |
05-Dec-1994 |
pst |
Remove extra newline introduced in Net/2
|
2589 |
08-Sep-1994 |
pst |
Add code to pull options out of FINGER environment variable if present. Yes, has same stupid bug as more(1), options must be specified as one argument.
Submitted by: pst
|
2537 |
07-Sep-1994 |
pst |
Install Luke's enhancements for finger.
By default, behave like the old ugly 4.4bsd finger and print office information instead of remote login information.
It's an easy one line fix to make it behave like most other vendor's fingers if we decide to change the default.
Reviewed by: pst
|
1591 |
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1590, which included commits to RCS files with non-trunk default branches.
|