Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ruslan Ermilov
0efe23d669
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 10:49:54 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Guy Helmer
7582054e10
Fix the number of bytes allocated by realloc when more space is needed
...
for the vector of arguments.
MFC after: 1 week
2001-06-07 20:05:18 +00:00
Ruslan Ermilov
4ecbb30346
Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.
...
Approved by: markm
2001-03-28 12:08:22 +00:00
Ruslan Ermilov
e5b5c66bca
- Backout botched attempt to intoduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:22:12 +00:00
Ruslan Ermilov
020ee2dc9f
Set the default manual section for libexec/ to 8.
2001-03-20 18:10:13 +00:00
Jeroen Ruigrok van der Werven
7c63796828
Preceed/preceeding are not english words. Use precede or preceding.
2001-02-18 10:25:42 +00:00
Jeroen Ruigrok van der Werven
1debc9f69d
Synch: Properly constify sccsid[].
...
Replace bcopy() with memmove().
2001-02-07 22:25:56 +00:00
Jeroen Ruigrok van der Werven
197640b1d7
Synch: Prefer memmove() over bcopy().
2001-02-07 22:22:57 +00:00
Jeroen Ruigrok van der Werven
a4322ab2f6
Synch: Properly constify sccsid[].
2001-02-07 22:20:44 +00:00
Jeroen Ruigrok van der Werven
6f76661f7f
Synch: prefer memmove() over bcopy(), since the first is a C-standard
...
interface, whilst the latter is a BSD'ism.
2001-02-07 22:18:58 +00:00
Jeroen Ruigrok van der Werven
9a01d32bfd
Fix typo: seperate -> separate.
...
Seperate does not exist in the english language.
Submitted to look at by: kris
2001-02-06 10:39:38 +00:00
Jeroen Ruigrok van der Werven
f09deb6962
Fix typo: wierd -> weird.
...
There is no such thing as wierd in the english language.
2001-02-06 09:25:10 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
896eb7d10c
Prepare for mdoc(7)NG.
2001-01-16 09:15:57 +00:00
Ruslan Ermilov
58eaff2332
Prepare for mdoc(7)NG.
2000-12-20 13:26:01 +00:00
Assar Westerlund
ba688fa510
(scrub_env): change to only accept a listed set of variables,
...
including only non-filename contents for TERMCAP
2000-12-10 20:50:20 +00:00
David E. O'Brien
1a37aa566b
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Kris Kennaway
f6fd83ed27
Correct definition of MAXHOSTNAMELEN in ifdef'ed code.
...
Submitted by: Edwin Groothuis <mavetju@chello.nl>
PR: bin/22787
2000-11-26 21:37:51 +00:00
Ruslan Ermilov
760819894e
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 14:42:24 +00:00
Kris Kennaway
75dd9c65fa
Don't use sizeof() on a pointer when we really wanted to measure
...
the length of the array.
Noticed by: Christos Zoulas <christos@ZOULAS.COM>
Obtained from: OpenBSD
2000-11-19 10:01:27 +00:00
Kris Kennaway
4147bd4426
Filter out some more magic environment variables used by libraries linked
...
with telnetd. This should really be done with a positive filter - i.e.
only allow through a configured list of variables.
Also do some buffer-safety cleanups while I'm here - I don't think these
are exploitable.
2000-10-31 05:29:54 +00:00
Mike Pritchard
751f44657e
Minor mdoc cleanup.
...
PR: docs/13218
2000-05-05 02:21:45 +00:00
Yoshinobu Inoue
0cac72f42c
several tcp apps IPv6 update
...
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
2000-01-25 14:52:10 +00:00
Jeroen Ruigrok van der Werven
f84ca2612e
We do not support the -B option.
...
PR: 15925
Submitted by: Thierry Herbelot
2000-01-12 14:49:38 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Jordan K. Hubbard
ef4aaceaa0
Back out previous commit - it's not necessary now that tty.h properly includes
...
the queue macros.
1999-08-09 07:51:03 +00:00
Brian Feldman
3452a15dcf
Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)
1999-08-09 02:19:38 +00:00
Brian Somers
d5cf830ef1
Determine the host name using an array size of
...
MAXHOSTNAMELEN and call trimdomain() before implementing
the -u option.
This allows local hosts of a lan with a long domain name to
appear properly in utmp by base host name (w/o domain) rather
than by IP number.
1999-04-08 21:36:27 +00:00
Brian Somers
aae211bc7e
Really fix -u....
1999-04-07 08:39:54 +00:00
Brian Somers
9e9a43bdec
Ensure that things returned by gethostname() and
...
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.
Fix telnetd -u (broken by my last commit)
Prompted by: bde
1999-04-07 08:27:45 +00:00
Brian Somers
32af26a501
Use realhostname() rather than various combinations of
...
gethostbyaddr() & gethostbyname().
Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
1999-04-06 23:06:00 +00:00
Brian Somers
51d8a6713f
After receiving a connection and doing a reverse
...
lookup on the incoming IP, do a forward lookup on
the result and make sure that the IP is in the
resulting list. If it's not, put the IP number
in utmp/wtmp instead of the rogue name.
Stolen from: rlogind
Suggested by: sef
1999-04-06 00:29:41 +00:00
Peter Wemm
3cc1b1bf9c
Old stuff laying around: Don't use a function called getstr(), that has
...
nasty consequences when the system curses is ncurses as this conflicts
with a ncurses funciton and causes recursion.
1998-12-16 06:04:29 +00:00
Wolfram Schneider
acd8019083
Sort cross references.
1998-08-31 16:41:09 +00:00
John Birrell
ad12d72a41
Remove a bogus prototype for time() and let time.h do that.
...
Change pointer casts from int to long. The code that looks to index -1
of argv is still broken on alpha.
1998-05-14 10:07:29 +00:00
Steve Price
b1dd8a7b57
Clarify use of 'if' capability.
...
PR: 6499
Submitted by: Doug Barton <Studded@san.rr.com>
1998-05-04 02:37:29 +00:00
Steve Price
f1f61bc603
Avoid stairstep effect on output of 'if=...' file.
...
PR: part of 6492
Submitted by: Chip Norkus via Doug White <studded@san.rr.com>
1998-05-03 16:29:06 +00:00
Poul-Henning Kamp
5708bd4228
telnetd does not recognize the if (display file before login) gettytab flag.
...
PR: 6365
Reviewed by: phk
Submitted by: Jason Garman <init@risen.org>
1998-04-26 06:51:36 +00:00
Philippe Charnier
4493ca0bce
Add missing dot.
1998-01-07 07:56:15 +00:00
Warner Losh
d3a9dd61ac
sprintf->snprintf paranoia. The one thing that looks like a hole in
...
the diff is in an ifdef that isn't enabled for FreeBSD.
Obtained from: OpenBSD(?)
1997-12-24 19:21:09 +00:00
Philippe Charnier
38de36c41c
Sync with diffs I found in kerberised versions: -Wall, no `;' in macros.
1997-12-08 07:46:53 +00:00
Philippe Charnier
5f806c3ccf
Use err(3). Remove progname and trailing \n in syslog strings.
1997-12-03 07:16:08 +00:00
Frank Durda IV
f05011e686
PR: bin/771 and bin/1037 are resolved by this change
...
This change changes the default handling of linemode so that older and/or
stupider telnet clients can still get wakeup characters like <ESC> and
<CTRL>D to work correctly multiple times on the same line, as in csh
"set filec" operations. It also causes CR and LF characters to be read by
apps in certain terminal modes consistently, as opposed to returning
CR sometimes and LF sometimes, which broke existing apps. The change
was shown to fix the problem demonstrated in the FreeBSD telnet client,
along with the telnet client in Solaris, SCO, Windows '95 & NT, DEC OSF,
NCSA, and others.
A similar change will be incorporated in the crypto version of telnetd.
This resolves bin/771 and bin/1037.
1997-10-08 03:10:32 +00:00
Mark Murray
8aeaa47e80
There is a clear separation of the crypto telnet and the non-crypto telnet.
...
As this is the non-crypto version, remove the useless (commented out)
directives and macros.
1997-09-28 08:40:54 +00:00
Wolfram Schneider
d6940a479f
-p flag misdocumented in telnetd(8)
...
PR: 4462
Submitted by: hfir@math.rochester.edu
1997-09-14 18:25:19 +00:00
Warner Losh
91477cc4d7
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:48:21 +00:00
Peter Wemm
9e522f7a18
Revert $FreeBSD$ to $Id$
1997-02-22 14:22:49 +00:00
David Nugent
54472d02d2
Added support for %s (sysname) %m (machine) %r (release) and %v (version)
...
prompt macros to agree with getty(8).
1997-02-02 07:33:50 +00:00