qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-1.4 07/12] qemu-char: Fix chardev "memory" n


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH for-1.4 07/12] qemu-char: Fix chardev "memory" not to drop IAC characters
Date: Tue, 05 Feb 2013 15:28:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 02/05/2013 09:22 AM, Markus Armbruster wrote:
> Undocumented misfeature, get rid of it while we can.
> 
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
>  qemu-char.c | 5 -----
>  1 file changed, 5 deletions(-)

Reviewed-by: Eric Blake <address@hidden>

> 
> diff --git a/qemu-char.c b/qemu-char.c
> index 0f91ca4..9460a9d 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -2678,11 +2678,6 @@ static int cirmem_chr_write(CharDriverState *chr, 
> const uint8_t *buf, int len)
>      }
>  
>      for (i = 0; i < len; i++ ) {
> -        /* Avoid writing the IAC information to the queue. */
> -        if ((unsigned char)buf[i] == IAC) {
> -            continue;
> -        }
> -
>          d->cbuf[d->prod++ % d->size] = buf[i];
>          if ((d->prod - d->cons) > d->size) {
>              d->cons = d->prod - d->size;
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]