Page MenuHomeFreeBSD

D20676.id58744.diff
No OneTemporary

D20676.id58744.diff

Index: stand/ofw/libofw/ofw_console.c
===================================================================
--- stand/ofw/libofw/ofw_console.c
+++ stand/ofw/libofw/ofw_console.c
@@ -97,7 +97,11 @@
return l;
}
- if (OF_read(stdin, &ch, 1) > 0)
+ /* At least since version 4.0.0, QEMU became bug-compatible
+ * with PowerVM's vty, by inserting a \0 after every \r.
+ * As this confuses loader's interpreter and as a \0 coming
+ * from the console doesn't seem reasonable, it's filtered here. */
+ if (OF_read(stdin, &ch, 1) > 0 && ch != '\0')
return (ch);
return (-1);

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 29, 8:00 PM (18 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30551582
Default Alt Text
D20676.id58744.diff (582 B)

Event Timeline