Fix a bug that prevents tc=xxx from working.
This commit is contained in:
parent
e484e92770
commit
5a10f1ccec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222824
@ -81,7 +81,6 @@
|
|||||||
static char *tbuf;
|
static char *tbuf;
|
||||||
static int hopcount; /* detect infinite loops in termcap, init 0 */
|
static int hopcount; /* detect infinite loops in termcap, init 0 */
|
||||||
|
|
||||||
static const char *remotefile;
|
|
||||||
extern const char *conffile;
|
extern const char *conffile;
|
||||||
|
|
||||||
int tgetent(char *, char *);
|
int tgetent(char *, char *);
|
||||||
@ -204,7 +203,7 @@ tnchktc(void)
|
|||||||
write(STDERR_FILENO, "Infinite tc= loop\n", 18);
|
write(STDERR_FILENO, "Infinite tc= loop\n", 18);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
if (getent(tcbuf, tcname, remotefile) != 1) {
|
if (getent(tcbuf, tcname, conffile) != 1) {
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
for (q = tcbuf; *q++ != ':'; )
|
for (q = tcbuf; *q++ != ':'; )
|
||||||
|
Loading…
Reference in New Issue
Block a user