mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
vmm: vm: Replace \n newline character with \r
This allows the CMD prompt under SAC to be used without affecting getty on Linux. Fixes: #1770 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
4ef97d8ddb
commit
5a0d3277c8
@ -1361,6 +1361,11 @@ impl Vm {
|
||||
.read_raw(&mut out)
|
||||
.map_err(Error::Console)?;
|
||||
|
||||
// Replace "\n" with "\r" to deal with Windows SAC (#1170)
|
||||
if count == 1 && out[0] == 0x0a {
|
||||
out[0] = 0x0d;
|
||||
}
|
||||
|
||||
if self
|
||||
.device_manager
|
||||
.lock()
|
||||
|
Loading…
Reference in New Issue
Block a user