]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: fix console=/dev/tty special case
authorCanek Peláez Valdés <caneko@gmail.com>
Tue, 31 May 2011 15:39:43 +0000 (11:39 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 31 May 2011 15:39:43 +0000 (11:39 -0400)
commit 1d09ad7d51e803e56b52c4e84dd558a7ac4d2e39 contained a mistake
where it checked for "tty" twice instead of "tty" once and "/dev/tty"
once.

This commit fixes that error.

src/main.c

index 6c237308942fa873a437c9160cc596278c36517f..dbd4d8228d20013257aac093e45a74e465d2e780 100644 (file)
@@ -1839,7 +1839,7 @@ check_for_consoles (state_t    *state,
         *end = '\0';
 
       if (strcmp (console, "tty0") == 0 || strcmp (console, "/dev/tty0") == 0 ||
-          strcmp (console, "tty") == 0 || strcmp (console, "tty") == 0)
+          strcmp (console, "tty") == 0 || strcmp (console, "/dev/tty") == 0)
         {
           free (console);
           console = strdup (default_tty);