summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-09-03 01:05:36 +0000
committerdavidn <davidn@FreeBSD.org>1997-09-03 01:05:36 +0000
commitbb643baa1db26311db05bb0e18abe657db4ccded (patch)
tree49d72a4fdf037c23825caaa3b3f90e9aa50ad7c1 /libexec
parent42c1dbe984c79c814ba81ffa653a825839a60133 (diff)
downloadFreeBSD-src-bb643baa1db26311db05bb0e18abe657db4ccded.zip
FreeBSD-src-bb643baa1db26311db05bb0e18abe657db4ccded.tar.gz
Fix botch with escaped characters, go back to using cgetstr().
For escaped characters used in modem strings, use double-backslashes in gettytab. PR: 4370
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 8e421d3..7bcffb9 100644
--- a/libexec/getty/subr.c
+++ b/libexec/getty/subr.c
@@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: subr.c,v 1.10 1997/05/11 10:25:38 davidn Exp $";
+static char rcsid[] = "$Id: subr.c,v 1.11 1997/09/01 10:06:05 davidn Exp $";
#endif /* not lint */
/*
@@ -132,7 +132,7 @@ gettable(name, buf)
}
for (sp = gettystrs; sp->field; sp++) {
- if ((l = cgetustr(buf, (char*)sp->field, &p)) >= 0) {
+ if ((l = cgetstr(buf, (char*)sp->field, &p)) >= 0) {
if (sp->value) {
/* prefer existing value */
if (strcmp(p, sp->value) != 0)
@@ -170,7 +170,7 @@ gettable(name, buf)
#ifdef DEBUG
printf("name=\"%s\", buf=\"%s\"\r\n", name, buf);
for (sp = gettystrs; sp->field; sp++)
- printf("cgetustr: %s=%s\r\n", sp->field, sp->value);
+ printf("cgetstr: %s=%s\r\n", sp->field, sp->value);
for (np = gettynums; np->field; np++)
printf("cgetnum: %s=%d\r\n", np->field, np->value);
for (fp = gettyflags; fp->field; fp++)
OpenPOWER on IntegriCloud