]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: Fix implementation of option --nonewline. The flag F_NONL was never set.
authorBenjamin Robin <dev@benjarobin.fr>
Sun, 18 May 2014 00:47:42 +0000 (02:47 +0200)
committerBenjamin Robin <dev@benjarobin.fr>
Sun, 18 May 2014 00:47:42 +0000 (02:47 +0200)
Signed-off-by: Benjamin Robin <dev@benjarobin.fr>
term-utils/agetty.c

index 7840f402dfabf381e037b1f4a0214b0cc0de28ff..e6bf1103b8752f2435e1430bf5574dd73d868da6 100644 (file)
@@ -690,6 +690,9 @@ static void parse_args(int argc, char **argv, struct options *op)
                case 'n':
                        op->flags |= F_NOPROMPT;
                        break;
+               case 'N':
+                       op->flags |= F_NONL;
+                       break;
                case 'o':
                        op->logopt = optarg;
                        break;