On Fri, 2007-03-16 at 11:16 -0400, David Robillard wrote:

> That being said, I checked /usr/src/libexec/getty/main.c to find out
> how to recreate your fix. But I'm not a huge C programmer, so I tried
> other ways to solve this.

I submitted a bug report and patch, but it has not been accepted yet.
I'm not even sure that it has been reviewed.  I'll attach my patch to
this message.

> That brought me to gettytab(5) which says that the "de" field controls
> the "delay secs and flush input before writing first prompt" as the
> man page puts it.

This puts a delay before the first prompt but not the prompts after
entering a null login name or other invalid input.   It could help if
you were having problems with garbled output all the time not just after
invalid input.  If  that is the case, you probably need to set de and
use my patch.


--- libexec/getty/main.c.orig   Tue Mar  6 15:55:35 2007
+++ libexec/getty/main.c        Tue Mar  6 15:58:06 2007
@@ -295,6 +295,8 @@
                    /* remove any noise */
                    (void)tcflush(STDIN_FILENO, TCIOFLUSH);
+               if (!first_sleep)
+                   sleep(1);
                first_sleep = 0;
@@ -376,6 +378,7 @@
                        if (name[0] == '-') {
                                puts("user names may not start with '-'.");
+                               oflush();
                        if (!(upper || lower || digit)) {
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to