]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: try next speed after CBREAK
authorKarel Zak <kzak@redhat.com>
Wed, 18 May 2011 12:19:39 +0000 (14:19 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 18 May 2011 12:19:39 +0000 (14:19 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c

index 1b6bfd645e5936e7bd21c1e1f5bf8f45b52ab467..45624f54dd88fd55014626ebafdb71eca6651360 100644 (file)
@@ -1336,7 +1336,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata
                        case 0:
                                *bp = 0;
                                if (op->numspeed > 1)
-                                       return logname;
+                                       return NULL;
                                break;
                        case CR:
                        case NL: