Commit Graph

26 Commits

Author SHA1 Message Date
rumble 0fe2cb9e42 Ensure that malloc does not return NULL before copying the buffer. 2006-03-17 04:53:55 +00:00
elad 9e505fa94b Fix two off-by-ones found by Coverity. 2006-03-17 01:55:31 +00:00
perry ee5c979c9f de-__P, ANSIfy prototypes, and kill register 2006-01-04 01:17:54 +00:00
christos 692346d6f0 PR/28264: Miles Nordin: finger does not consult utmp if a username is specified 2004-11-12 21:48:58 +00:00
dsl 43371ff1ac Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 032ed69f9a strlcpy 2003-07-12 13:23:55 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
christos 8bff4369e7 support utmpx; no lastlogx support yet. 2002-08-02 00:10:40 +00:00
christos e5785ba616 fix nested extern 2001-02-05 01:56:51 +00:00
itojun bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
christos 489005fa65 char -> unsigned char 1998-12-19 16:01:21 +00:00
perry bfd526219d bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:57:23 +00:00
mycroft d92a424ade const poisoning. 1998-07-26 21:35:28 +00:00
mrg 987dbad8ba merge lite-2. WARNSify. clean up .Nm. 1997-10-19 08:13:23 +00:00
pk f6d87734a6 NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:40:47 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
lukem 8bcf7e5435 don't need to explicitly NUL terminate strings written by snprintf() 1996-11-22 05:34:06 +00:00
lukem 3ccb8ba1c9 - add -h (show hostnames in short listing instead of office info), and
-o (the reverse of this, also the default)
- use vis(3) in vputc() instead of handcrufted function (from OpenBSD).
- move gecos expansion into expandusername() (a la sendmail's buildfname).
  A generic version of this last bit in libutil would be useful...
- cleanup the code, fix prototypes, etc.
1996-11-21 06:01:47 +00:00
jtc 6ce8742ab1 Update lseek() constants:
L_SET	-> SEEK_SET
Add off_t cast to offset arg.
1995-09-27 01:10:48 +00:00
cgd fcb1f85786 pull in string.h or stdlib.h as necessary. 1994-12-24 16:33:46 +00:00
cgd 67f7468b24 bad cast 1994-04-01 03:32:38 +00:00
brezak 4eae27f3eb Whilst hacking the Net/2 version of finger to work on Solaris 2.2 (we
needed a finger on that platform which grokked the office/phone # GCOS
info), I decided to put mail status in (as the solaris version has
that).

The attached patch adds:
- manual page typos fixed: finger doesn't scan .forward, contrary to
  what the man page says (and really shouldn't either, IMHO - that's
  what telnet host SMTP & VRFY are for :)

- added a mail check (printed between login info and the project).
  three different messages possible:
  - if you have no mail:
        No Mail.
  - if you have mail, but there's no unread mail:
        Mail last read DDD MMM ## HH:MM (TZ)
  - if you have new mail:
        New mail received DDD MMM ## HH:MM (TZ)
             Unread since DDD MMM ## HH:MM (TZ)

- fixed the manual page.

lm@yallara.cs.rmit.OZ.AU (Luke Mewburn)
1993-10-07 19:58:28 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00