Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163523433
D20676.id58790.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
597 B
Referenced Files
None
Subscribers
None
D20676.id58790.diff
View Options
Index: head/stand/ofw/libofw/ofw_console.c
===================================================================
--- head/stand/ofw/libofw/ofw_console.c
+++ head/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
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 25, 2:52 AM (8 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35459986
Default Alt Text
D20676.id58790.diff (597 B)
Attached To
Mode
D20676: [PPC] Fix loader input with newer QEMU versions
Attached
Detach File
Event Timeline
Log In to Comment