The NetBSD Project

CVS log for src/libexec/telnetd/telnetd.c

[BACK] Up to [cvs.NetBSD.org] / src / libexec / telnetd

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.55.28.3: download - view: text, markup, annotated - select for diffs
Mon Nov 18 19:44:57 2024 UTC (3 weeks, 2 days ago) by martin
Branches: netbsd-9
Diff to: previous 1.55.28.2: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.28.2: +11 -8 lines
Pull up following revision(s) (requested by riastradh in ticket #1927):

	lib/libtelnet/encrypt.h: revision 1.10
	libexec/telnetd/telnetd.c: revision 1.59
	libexec/telnetd/sys_term.c: revision 1.50
	lib/libtelnet/encrypt.c: revision 1.20
	lib/libtelnet/enc_des.c: revision 1.18
	lib/libtelnet/enc-proto.h: revision 1.11
	libexec/telnetd/state.c: revision 1.33
	libexec/telnetd/state.c: revision 1.35
	libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787  libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787  telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

        https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 18 19:42:41 2024 UTC (3 weeks, 2 days ago) by martin
Branches: netbsd-10
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +11 -8 lines
Pull up following revision(s) (requested by riastradh in ticket #1013):

	lib/libtelnet/encrypt.h: revision 1.10
	libexec/telnetd/telnetd.c: revision 1.59
	libexec/telnetd/sys_term.c: revision 1.50
	lib/libtelnet/encrypt.c: revision 1.20
	lib/libtelnet/enc_des.c: revision 1.18
	lib/libtelnet/enc-proto.h: revision 1.11
	libexec/telnetd/state.c: revision 1.33
	libexec/telnetd/state.c: revision 1.35
	libexec/telnetd/telnetd.c: revision 1.60

Fix memory leak - free resources allocated by getaddrinfo

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)
Thanks christos@ for the review
PR bin/58787  libtelnet - avoid using a global variable


From RVP -- make 'encrypt_debug_mode' be a static (file scope)
variable instead of extern, and convert the (had been recently
anyway) unused function encrypt_debug() into an accensor function
for it.

This is the minor (almost irrelevant) change from PR bin/58787
PR bin/58787  telnetd - handle auto authentication better
Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from

        https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Oct 29 13:10:10 2024 UTC (6 weeks, 1 day ago) by kre
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +10 -8 lines
PR bin/58787  telnetd - handle auto authentication better

Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd
more than 2 years ago, so I assume instead from
	https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Sep 21 14:00:34 2023 UTC (14 months, 3 weeks ago) by shm
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -2 lines
Fix memory leak - free resources allocated by getaddrinfo

Revision 1.55.18.1: download - view: text, markup, annotated - select for diffs
Mon Aug 29 16:14:57 2022 UTC (2 years, 3 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +7 -7 lines
Pull up following revision(s) (requested by dholland in ticket #1757):

	libexec/telnetd/telnetd.c: revision 1.58 (via patch)

telnetd: fix the crash that's been talked about the past couple days.

(Move initialization of the slc table earlier so it doesn't get
accessed before that happens.)

Calling the crash a DoS or security problem is a bit overwrought; it's
just a bug.

Revision 1.55.28.2: download - view: text, markup, annotated - select for diffs
Mon Aug 29 16:13:25 2022 UTC (2 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.55.28.1: preferred, colored; branchpoint 1.55: preferred, colored
Changes since revision 1.55.28.1: +7 -7 lines
Pull up following revision(s) (requested by dholland in ticket #1508):

	libexec/telnetd/telnetd.c: revision 1.58 (via patch)

telnetd: fix the crash that's been talked about the past couple days.

(Move initialization of the slc table earlier so it doesn't get
accessed before that happens.)

Calling the crash a DoS or security problem is a bit overwrought; it's
just a bug.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Aug 26 19:30:44 2022 UTC (2 years, 3 months ago) by dholland
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Branch point for: netbsd-10
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +7 -7 lines
telnetd: fix the crash that's been talked about the past couple days.

(Move initialization of the slc table earlier so it doesn't get
accessed before that happens.)

Calling the crash a DoS or security problem is a bit overwrought; it's
just a bug.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Dec 8 20:21:09 2021 UTC (3 years ago) by andvar
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +3 -3 lines
s/desireable/desirable/ in comments.

Revision 1.55.26.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:19 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +6 -10 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.55.28.1: download - view: text, markup, annotated - select for diffs
Fri Aug 16 19:12:46 2019 UTC (5 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -10 lines
Pull up following revision(s) (requested by kamil in ticket #61):

	libexec/telnetd/telnetd.c: revision 1.56
	libexec/telnetd/sys_term.c: revision 1.49

telnetd: Stop defining the same variables concurrently in bss and data
auth_level and require_secure_login were defined in two places:

 - global.c that picked it from headers and removed 'extern'
 - telnetd.c that initialized it to 0

line was defined twice: in global.c and sys_term.c with a non-zero value.

Remove the definition and initialization from sys_term.c and initialize
the variable early in main().

Detected during the build of telned with Address Sanitizer (MKSANITIZER).
Reviewed by <mrg>

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Aug 15 01:15:21 2019 UTC (5 years, 3 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -10 lines
telnetd: Stop defining the same variables concurrently in bss and data

auth_level and require_secure_login were defined in two places:

 - global.c that picked it from headers and removed 'extern'
 - telnetd.c that initialized it to 0

line was defined twice: in global.c and sys_term.c with a non-zero value.
Remove the definition and initialization from sys_term.c and initialize
the variable early in main().

Detected during the build of telned with Address Sanitizer (MKSANITIZER).

Reviewed by <mrg>

Revision 1.54.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:23 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +2 -5 lines
Rebase to HEAD as of a few days ago.

Revision 1.52.4.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:37:14 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.52.4.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.4.1: +2 -5 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Feb 27 18:20:21 2014 UTC (10 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-9, netbsd-8
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -5 lines
Global variable is never a null pointer.

Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:37 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +12 -12 lines
sync with head

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Jan 10 23:39:11 2012 UTC (12 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +7 -8 lines
Use __dead

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Jan 9 16:36:48 2012 UTC (12 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +7 -6 lines
PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- separate MKCRYPTO from USE_KERBEROS
- WARNS=4

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Apr 24 21:18:24 2011 UTC (13 years, 7 months ago) by elric
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
#include <com_err.h> -> #include <krb5/com_err.h>.

Revision 1.50.20.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:39:18 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +4 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Jul 20 01:09:07 2008 UTC (16 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue May 9 20:18:07 2006 UTC (18 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-revivesa
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +6 -4 lines
change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
socklen_t are different signness.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Feb 2 18:31:12 2006 UTC (18 years, 10 months ago) by he
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
Make the debug variable static, to accomodate static linking with libssh.a.

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 1 15:15:02 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-0-3-RELEASE
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +4 -4 lines
Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.

Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Fri Jul 1 15:12:47 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +4 -4 lines
Apply patch (requested by lha in ticket #2041):
Remove static local variable so its easier to correctly use strlcpy.

Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 27 09:20:13 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.46.2.1: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.1: +2 -2 lines
Pull up revision 1.48 (requested by lha in ticket #502):
Remove static local variable so its easier to correctly use strlcpy.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Jun 21 22:29:53 2005 UTC (19 years, 5 months ago) by lha
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4 lines
Remove static local variable so its easier to correctly use strlcpy.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 13 22:07:52 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -2 lines
Pull up revision 1.47 (requested by lukem in ticket #400):
Ensure IF is initialized before trying to use it.
Found with -Wuninitialized.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Jun 1 15:57:40 2005 UTC (19 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -2 lines
Ensure IF is initialized before trying to use it.
Found with -Wuninitialized.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Feb 6 05:58:21 2005 UTC (19 years, 10 months ago) by perry
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +27 -34 lines
de-__P, ANSIfy function declarations, remove obsolete "register" declarations.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Nov 30 04:13:43 2004 UTC (20 years ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -5 lines
PR/28473: Jed Davis: telnetd loses data and corrupts crypto state due to
typo in use of poll(). There was an && instead of an & (hi charles)

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Nov 14 18:07:56 2004 UTC (20 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3 lines
Pass -a [srrvis'd struct sockaddr] to login, so that login can record the
address where we have logged in from.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Aug 7 09:46:52 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-0, netbsd-2
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22284, verified by myself.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Jul 22 00:03:26 2003 UTC (21 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -5 lines
Since telnetd has ignored the USER environment variable for logging in for
quite a bit of time, make telnetd ignore it completely now.  This results
in the :if=: entry in the default gettytab entry to honored instead of
being ignored.  The -h option to telnetd will continue to suppress the
inclusion of :if=:

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jul 15 10:14:54 2003 UTC (21 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -6 lines
use bounded string op.  bump shlib major for libtelnet due to API change.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Jul 14 16:17:37 2003 UTC (21 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -4 lines
SIGINFO is defined

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Jul 14 15:55:55 2003 UTC (21 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +25 -483 lines
remove unneeded #ifdefs.  improves readability.
(confirmed that exact same *.o is produced)

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Jul 13 09:40:21 2003 UTC (21 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -4 lines
use bounded string op (there still are remains)

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat May 17 21:28:53 2003 UTC (21 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +5 -8 lines
use strlcpy

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri May 9 20:50:35 2003 UTC (21 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -3 lines
PR/21233: Onno van der Linden: -U option does not work as advertised.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Sep 20 19:11:17 2002 UTC (22 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +5 -7 lines
Remove dead code.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Sep 18 20:58:56 2002 UTC (22 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +32 -40 lines
select() -> poll()

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Aug 20 13:58:22 2002 UTC (22 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +10 -2 lines
add some more ifdefs, so that we don't define variables we don't use.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jan 31 07:54:50 2002 UTC (22 years, 10 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +8 -4 lines
implement -u <len>. PR 13676

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Sep 2 18:56:26 2001 UTC (23 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
-edebug should only be mentioned in the help #ifdef ENCRYPTION, not #ifdef
AUTHENTICATION. Noted (with patch) by Brian Ginsbach.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Aug 30 23:25:16 2001 UTC (23 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -22 lines
Remove code #ifdef'd on NEWINIT (never used on NetBSD).
Sync with Cray, patch by Brian Ginsbach in private mail.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:14:04 2001 UTC (23 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -64 lines
Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Aug 20 11:14:05 2001 UTC (23 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4 lines
Fix typo, and duplicate ';'. From bin/13667 by Brian Ginsbach.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Aug 20 11:01:48 2001 UTC (23 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +8 -8 lines
Add some (const char *) casts per bin/13667 by Brian Ginsbach.

Revision 1.20.4.2: download - view: text, markup, annotated - select for diffs
Sun Jul 29 04:13:09 2001 UTC (23 years, 4 months ago) by jhawk
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002
Diff to: previous 1.20.4.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.4.1: +28 -34 lines
Pull up revision 1.26 (requested by itojun):
  Security-related fixups for telnet
    Bound-check all "*nfrontp++" code.  From OpenBSD and Heimdal.
    Complain if file descriptor goes above FD_SETSIZE.  From OpenBSD.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 19 04:57:50 2001 UTC (23 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +28 -34 lines
bound-check all "*nfrontp++" code.  from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE.  from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code?  need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Feb 4 22:32:17 2001 UTC (23 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -12 lines
fix redundant declarations.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jan 10 02:51:37 2001 UTC (23 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
use LOG_ERR for fatal errors, LOG_WARNING for other errors
minor knf
deprecate LOG_ODELAY; it's the default

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Nov 19 20:17:39 2000 UTC (24 years ago) by christos
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -5 lines
Buffer overflow and environment passing fixes [originally inspired from
FreeBSD]. We really didn't need the environment fixes, but for the sake
of keeping the code as close as possible...

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Aug 18 03:25:52 2000 UTC (24 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -6 lines
make error case handling in -daemon case meet with other portion of the code.
(use fprintf-then-exit, not errx - costmetic)

Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 07:09:05 2000 UTC (24 years, 5 months ago) by thorpej
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +91 -7 lines
Update from trunk:
Bring the telnet situation back into better shape.  Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
  module.
- Add connection encryption support to the Heimdal Kerberos 5
  module.  Hints on this can be taken from the MIT Kerberos 5
  module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Jun 22 06:47:49 2000 UTC (24 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +91 -7 lines
Bring the telnet situation back into better shape.  Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
  module.
- Add connection encryption support to the Heimdal Kerberos 5
  module.  Hints on this can be taken from the MIT Kerberos 5
  module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Jan 13 13:11:31 2000 UTC (24 years, 11 months ago) by ad
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +23 -9 lines
Make 'if' capability from gettytab work. *shudder*.

Revision 1.18.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:30:17 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +3 -3 lines
Pull up to last week's -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Dec 16 06:00:24 1999 UTC (25 years ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
do not touch __ss_len directly, they are not supposed to be touched.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jul 11 03:04:14 1999 UTC (25 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
Nuke some whitespace.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jul 11 03:00:07 1999 UTC (25 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Put the RCS ID in the correct place.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Jul 2 06:32:08 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +74 -48 lines
dual-stack telnetd.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Feb 12 05:30:12 1999 UTC (25 years, 10 months ago) by dean
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +10 -10 lines
Fix for PR 5821
- s/SecurID/SECURELOGIN/g and define SECURELOGIN in Makefile
- update man page to reflect S/Key and Kerboros authentication used
  not SecurID

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jul 9 18:32:52 1998 UTC (26 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -2 lines
Declare ints, too, don't default them.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jul 6 06:49:41 1998 UTC (26 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -5 lines
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Oct 20 02:12:17 1997 UTC (27 years, 1 month ago) by enami
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -4 lines
No need to declare optind and optarg.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Oct 16 06:52:52 1997 UTC (27 years, 2 months ago) by mikel
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -4 lines
don't include <sys/cdefs.h> twice, kill old-style getpty() declaration

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Oct 14 01:16:43 1997 UTC (27 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
use <termcap.h>

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Oct 8 08:45:13 1997 UTC (27 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +27 -14 lines
WARNS?=1.  RCS ids.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Oct 8 01:09:02 1997 UTC (27 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Put a whitespace after the keyword `switch'.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Oct 8 01:08:08 1997 UTC (27 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Compare a return value of getopt() against -1 instead of EOF.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Mar 20 04:25:57 1996 UTC (28 years, 9 months ago) by tls
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +8 -4 lines
apply Thorsten's patch to add gettytab support to telnetd.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Feb 28 20:38:23 1996 UTC (28 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -2 lines
RCS id cosmetics.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Feb 24 01:22:23 1996 UTC (28 years, 9 months ago) by jtk
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +44 -15 lines
update to telnetd from 95.10.23 version.  Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Sep 24 00:42:23 1994 UTC (30 years, 2 months ago) by mycroft
Branches: WFJ-920714, CSRG
CVS tags: lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +390 -57 lines
Import original 4.4-Lite version.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Feb 25 03:20:59 1994 UTC (30 years, 9 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +378 -77 lines
new telnetd from ftp.cray.com.  Encryption support ripped out, pending
figuring out what to do about it...

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:29:07 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Add RCS identifiers.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 9 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 9 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>