charnier
9639b20db6
The .Nm utility
2002-07-06 19:19:48 +00:00
jmallett
afc38d0730
Don't risk catching a signal while handling a signal for a dying child, as we
...
can then end up not properly clearing wtmp/utmp entries.
PR: bin/37934
Submitted by: Sandeep Kumar <skumar@juniper.net>
Reviewed by: markm
MFC after: 2 weeks
2002-05-27 08:10:24 +00:00
kris
0e1bb965cc
Set WFORMAT=0, overlooked in previous commits to libexec/.
...
Reported by: jhay
2002-02-06 11:07:55 +00:00
sheldonh
81cc5956d9
Don't use non-signal-safe functions (exit(3) in this case) in
...
signal handlers. In this case, use _exit(2) instead, following
the call to shutdown(2).
This fixes rare telnetd hangs.
PR: misc/33672
Submitted by: Umesh Krishnaswamy <umesh@juniper.net>
MFC after: 1 month
2002-02-05 15:20:02 +00:00
ru
42d152852b
MFCrypto: Remove -r, -s, sort -p.
2001-12-14 14:46:51 +00:00
markm
2149facaa0
Merge from master (crypto) telnet. WARNS fixes for alpha.
2001-12-03 12:41:19 +00:00
markm
9d10280c0b
Merge the (in)complete ANSIfication work from src/crypto/telnet.
2001-11-30 22:37:28 +00:00
markm
b72e252a01
After running a "make unifdef", commit the resultant diffs.
...
This code is now a complete sunset of the crypto (master) code.
2001-11-30 22:03:20 +00:00
markm
3962485896
Diff-reduce WRT src/secure/*telnet*/Makefile.
...
Also, add an "unifdef:" target, so that the telnet sources can
be remade from the crypto sources in src/crypto/telnet.
2001-11-30 21:34:51 +00:00
markm
5987cca2b8
Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.
2001-08-29 14:16:17 +00:00
dd
2c3a92a16f
Remove description of an option that only applies to UNICOS < 7.0.
...
That define may still be present in the source, but I don't think
anyone has plans to try to use it.
Obtained from: NetBSD
2001-08-25 21:29:12 +00:00
markm
162b7bf01c
Feature merging and diff reduction between this code and crypto telnet.
...
Also remove conditional (AUTHENTICATION) code as we have never compiled
it here, and it is doubtful that it even works in this scenario.
2001-08-20 12:12:27 +00:00
ru
24c7b0a61d
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
kris
da715e7cac
MFcrypto/telnet/telnetd: Correct semantics of output_data*() and netflush()
...
to ensure deterministic operation
2001-07-23 22:00:51 +00:00
ru
016c529237
MFCrypto: fixed the remote buffer overflow.
2001-07-20 15:14:03 +00:00
dd
a145482cf6
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
ru
5e14a6862e
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 10:49:54 +00:00
brian
8636b161b3
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
ghelmer
d6ce76b54b
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
ru
98c6ecb383
Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.
...
Approved by: markm
2001-03-28 12:08:22 +00:00
ru
45d92a4319
- Backout botched attempt to intoduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:22:12 +00:00
ru
a23a98f937
Set the default manual section for libexec/ to 8.
2001-03-20 18:10:13 +00:00
asmodai
0f00927ea0
Preceed/preceeding are not english words. Use precede or preceding.
2001-02-18 10:25:42 +00:00
asmodai
5cf198e77a
Synch: Properly constify sccsid[].
...
Replace bcopy() with memmove().
2001-02-07 22:25:56 +00:00
asmodai
dfe4864cef
Synch: Prefer memmove() over bcopy().
2001-02-07 22:22:57 +00:00
asmodai
1393f49cab
Synch: Properly constify sccsid[].
2001-02-07 22:20:44 +00:00
asmodai
248275ca89
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
asmodai
47a2266000
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
asmodai
e69fe706f1
Fix typo: wierd -> weird.
...
There is no such thing as wierd in the english language.
2001-02-06 09:25:10 +00:00
ru
8a6f8b5fe4
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
ru
04d60c1164
Prepare for mdoc(7)NG.
2001-01-16 09:15:57 +00:00
ru
9dc3f06fd9
Prepare for mdoc(7)NG.
2000-12-20 13:26:01 +00:00
assar
b022d1d27e
(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
obrien
c2ee1dcc02
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
kris
35eec2074d
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
ru
fda4c0a990
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 14:42:24 +00:00
kris
b9600b6040
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
d710bffe20
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
mpp
c0f912fb2f
Minor mdoc cleanup.
...
PR: docs/13218
2000-05-05 02:21:45 +00:00
shin
fc29f7bcf7
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
asmodai
5aeafb3ed8
We do not support the -B option.
...
PR: 15925
Submitted by: Thierry Herbelot
2000-01-12 14:49:38 +00:00
peter
76f0c923fe
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
jkh
f0f8bd1b55
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
green
518ce45aad
Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)
1999-08-09 02:19:38 +00:00
brian
ee8f7b8bf0
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
68437b1a0e
Really fix -u....
1999-04-07 08:39:54 +00:00
brian
c6c6c7de65
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
a77173a7cd
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
5aa9166dba
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
4b96ed957d
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