From: Karel Zak Date: Wed, 7 Sep 2011 05:37:03 +0000 (+0200) Subject: agetty: double equals sign typo in opentty() X-Git-Tag: v2.21-rc1~461 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=89aed1c950376d828e1e0ddef94909a028e0517d;p=thirdparty%2Futil-linux.git agetty: double equals sign typo in opentty() Reported-by: Francesco Cosoleto Signed-off-by: Karel Zak --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 733be3802b..35bb389545 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -985,7 +985,7 @@ static void open_tty(char *tty, struct termios *tp, struct options *op) * In case of a virtual console the ioctl TIOCMGET fails and * the error number will be set to EINVAL. */ - if (ioctl(STDIN_FILENO, TIOCMGET, &serial) < 0 && (errno = EINVAL)) { + if (ioctl(STDIN_FILENO, TIOCMGET, &serial) < 0 && (errno == EINVAL)) { op->flags |= F_VCONSOLE; if (!op->term) op->term = DEFAULT_VCTERM;