]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[console] Fix ioctl call
authorRay Strode <rstrode@redhat.com>
Thu, 12 Nov 2009 14:15:57 +0000 (09:15 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 12 Nov 2009 14:15:57 +0000 (09:15 -0500)
it was doing if (!ioctl ... < 0).  Spotted by
Scott James Remnant

src/libplybootsplash/ply-console.c

index 587345842951f3da271759401c00da88830b518d..61575711e56e37cf682935610818460c02401bf7 100644 (file)
@@ -203,7 +203,7 @@ ply_console_watch_for_vt_changes (ply_console_t *console)
   mode.relsig = SIGUSR1;
   mode.acqsig = SIGUSR2;
 
-  if (!ioctl (console->fd, VT_SETMODE, &mode) < 0)
+  if (ioctl (console->fd, VT_SETMODE, &mode) < 0)
     return;
 
   ply_event_loop_watch_signal (console->loop,