Commit Graph

40 Commits

Author SHA1 Message Date
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
itojun 98a141cc3f dual-stack finger.
% finger itojun@::1
% finger itojun@127.0.0.1
% finger itojun@localhost
	tries all addresses listed on DNS, uses first one with successful
	connect(2).
1999-07-02 06:01:22 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
christos 489005fa65 char -> unsigned char 1998-12-19 16:01:21 +00:00
christos 5d6b49ea05 gcc-2.8.1 printf format and brace warnings. 1998-12-19 16:01:01 +00:00
christos 4fe7015c6d SVR4 timezone portability 1998-12-19 16:00:33 +00:00
christos b4775af2e3 index -> strchr 1998-12-19 15:59:50 +00:00
frueauf 342f84988e Remove duplicate paragraph, mention .forward file, fixes pr 6177 by
Andreas Wrede.
1998-09-18 20:39:48 +00:00
tron f1bd8f538d Print login time left justified as suggested by Wolfgang Helbig in
PR bin/6131.
1998-09-09 17:22:31 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +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
mycroft decd62c2bf const poisoning. 1998-07-26 15:13:14 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
lukem 2585608506 remove extraneous newline in remote finger output. (found by chuck cranor) 1997-11-24 22:03:48 +00:00
mrg 66f7b9fd72 fix compile warnings on the alpha. 1997-10-19 14:05:56 +00:00
mrg 987dbad8ba merge lite-2. WARNSify. clean up .Nm. 1997-10-19 08:13:23 +00:00
lukem 906b60f5e0 getopt returns -1 not EOF 1997-10-18 14:49:41 +00:00
mrg 2703290213 add -g flag: do not show non real name gecos info. 1997-09-09 02:41:06 +00:00
pk f6d87734a6 NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:40:47 +00:00
mycroft 5d918be419 Minor formatting changes to make the output less ugly. 1997-03-28 02:15:21 +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
jtc ca160a4e7b imported from 44lite2 1995-09-01 00:25:45 +00:00
jtc 1a62dfd970 Fix typo, noted by Masanobu Saitoh in PR #1272 1995-07-25 18:16:57 +00:00
mycroft 39a59b6bbe Fix oversight in previous. 1995-05-21 15:06:52 +00:00
mycroft 504e402f82 Use inet_aton(), not inet_addr(). 1995-05-21 15:03:24 +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
cgd 0563f20cc0 after -> before 1994-02-14 19:07:33 +00:00
mycroft 540438e596 Ignore multiple \r's. 1994-01-14 03:50:50 +00:00
mycroft 6be6fca207 Print `-' rather than ` ' for 0 idle time. 1993-10-26 20:52:51 +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
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00