mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 23:05:49 +01:00
Old stuff laying around: Don't use getstr which can conflict with some
curses/termcap/terminfo implementations and causes recursion.
This commit is contained in:
parent
3cc1b1bf9c
commit
8d0a3d19f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41858
@ -55,7 +55,7 @@ char *cp, *name;
|
||||
#ifndef SOLARIS
|
||||
/*ARGSUSED*/
|
||||
char *
|
||||
getstr(id, cpp)
|
||||
Getstr(id, cpp)
|
||||
char *id, **cpp;
|
||||
{
|
||||
# ifdef HAS_CGETENT
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static const char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: telnetd.c,v 1.4 1998/02/16 12:09:27 markm Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "telnetd.h"
|
||||
@ -1135,12 +1135,12 @@ telnet(f, p, host)
|
||||
#endif
|
||||
|
||||
if (getent(defent, "default") == 1) {
|
||||
char *getstr();
|
||||
char *Getstr();
|
||||
char *cp=defstrs;
|
||||
|
||||
HE = getstr("he", &cp);
|
||||
HN = getstr("hn", &cp);
|
||||
IM = getstr("im", &cp);
|
||||
HE = Getstr("he", &cp);
|
||||
HN = Getstr("hn", &cp);
|
||||
IM = Getstr("im", &cp);
|
||||
if (HN && *HN)
|
||||
(void) strcpy(host_name, HN);
|
||||
if (IM == 0)
|
||||
|
@ -55,7 +55,7 @@ char *cp, *name;
|
||||
#ifndef SOLARIS
|
||||
/*ARGSUSED*/
|
||||
char *
|
||||
getstr(id, cpp)
|
||||
Getstr(id, cpp)
|
||||
char *id, **cpp;
|
||||
{
|
||||
# ifdef HAS_CGETENT
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static const char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: telnetd.c,v 1.4 1998/02/16 12:09:27 markm Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "telnetd.h"
|
||||
@ -1135,12 +1135,12 @@ telnet(f, p, host)
|
||||
#endif
|
||||
|
||||
if (getent(defent, "default") == 1) {
|
||||
char *getstr();
|
||||
char *Getstr();
|
||||
char *cp=defstrs;
|
||||
|
||||
HE = getstr("he", &cp);
|
||||
HN = getstr("hn", &cp);
|
||||
IM = getstr("im", &cp);
|
||||
HE = Getstr("he", &cp);
|
||||
HN = Getstr("hn", &cp);
|
||||
IM = Getstr("im", &cp);
|
||||
if (HN && *HN)
|
||||
(void) strcpy(host_name, HN);
|
||||
if (IM == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user