From nobody Sat May 4 14:34:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=qq.com ARC-Seal: i=1; a=rsa-sha256; t=1611312223; cv=none; d=zohomail.com; s=zohoarc; b=gmjR7wWIr46pPchYIepY8JBfFHF99vHarmNaJZT+GLMs9Ig8ZS69YzQMUT9ZCOWPEDY85OX9UacPgPeQDjp9OwhMcMlclSsa+orfnS6GtvQEcXtSaBSGqY59bmIainUs8MCmPgicRH8n9WMyJ+/UW0aIyZSTs8CoseiFyboOfXc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611312223; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=5l81gZH43H2HOn66jMO2m63rfvQkSjpuc8ZgVnZWhIo=; b=NyEib9zYA34w8wn1y3HGKnsjjnCA9Y+zXBD5Ae69SqCIbZpOum1p2+S4yW1Zzn5hwV9UVv90seboUHILWNsb2AtFGMxXGLd2skv005L7stwMmGjNR2Gm2OtzvS71w5mjMKF5ZQ+fUqBCqmpfJbL8TcE5M06DKBmcfBKNKCthkrA= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from=<274268859@qq.com> (p=none dis=none) header.from=<274268859@qq.com> Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1611312223590776.6361811665622; Fri, 22 Jan 2021 02:43:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-578-4yukdyH1OzmagC5Lc4zJlA-1; Fri, 22 Jan 2021 05:43:39 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 35A7851EE; Fri, 22 Jan 2021 10:43:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C46786249C; Fri, 22 Jan 2021 10:43:31 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C6EC8180954D; Fri, 22 Jan 2021 10:43:28 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 10MAhKpF029322 for ; Fri, 22 Jan 2021 05:43:21 -0500 Received: by smtp.corp.redhat.com (Postfix) id 848D92026D47; Fri, 22 Jan 2021 10:43:20 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7FD3C2026D46 for ; Fri, 22 Jan 2021 10:43:17 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 530D6800296 for ; Fri, 22 Jan 2021 10:43:17 +0000 (UTC) Received: from qq.com (out203-205-251-53.mail.qq.com [203.205.251.53]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-573-YA8uOPQ7MvmZwqRXeZ1u1Q-1; Fri, 22 Jan 2021 05:43:14 -0500 Received: from localhost.localdomain ([106.120.220.78]) by newxmesmtplogicsvrszc8.qq.com (NewEsmtp) with SMTP id AC8300B3; Fri, 22 Jan 2021 18:43:08 +0800 X-MC-Unique: 4yukdyH1OzmagC5Lc4zJlA-1 X-MC-Unique: YA8uOPQ7MvmZwqRXeZ1u1Q-1 X-QQ-mid: xmsmtpt1611312188tgugackaw Message-ID: X-QQ-XMAILINFO: MihKUlpafCyMUu/Qq0V6ey0BSr4PEuusLhHQD+vk0atkSCCQEdDuOTpg96eIEm 9a1c2hjLB1Bitm/vU6wgJmkg+T3UFudav8Bsm8ppWW4mBLEcJlVsi3HPRt52ZfYiUGCaCscuQ2si GDLuMmpCN2c9sgvOlmVh9MP0xb7zR1Q5GaSaT2VZTqTJ0QO5yr9MwkQ+RKwMpCLnAqcpbl6VjC98 njWYPBJQ90g6nab/vdaDYTCpwIPCW7z870MtHXDZYmyh3+vdby7N43d0qTjCe6h4xcAXlSOxnF5h hebfTEpKGMV5d9oTcKMLD5Ka3OMlEcq9wstxv0lIebx6J1kqXTBG+jD5sBtnm3weMNORScEFiTTb 96IZq1SG+/patRlVSeKwu06ob59DwnQgySylql/71o6k1iZkJxX1LExwwcX1LU9rrE/BrlN5yCuN TiFyDsu9ASR2YyqjcKnUsf58GbY/HwuzpipyQ14VT3K60/qHeo5jCbquXJDxzCxtp1ZXS+T5ZxYL C+taZTInR0mwco6x7FzEvggtk6M+uI8tWIjsS3Ln+JPRTsxQJMR9emNzC8Xzm+hEXbCGoRiJKZJv Q2vl+m+LtcxUbWrfvflcv6DhAx6LUYUs8E0gpYv7iiC3KNkOC/Z4Ka3hnkV2h/LwXP6BPFypI5oL 7sggUMyjIw+vUDTcfWOBZnfTVz8mi+lINVjEZ1b5ulV5NNFyA8GZZpBrqTRg7q3v8FfguEjgTjqe CptMjvBfwFzoB3/f9QZDPSKc+roiHvoRS7R8qsNY+LYcgHGhfMOJHjCqyeyXOQpJwigDbhEtAfRP 9W0GO4C0JfkdQ8l91b0n++VLQuejGZuKn5DPuTwxF1s8VYVzihDgsv From: Yalei Li <274268859@qq.com> To: libvir-list@redhat.com Subject: [PATCH] virNetDevOpenvswitchGetVhostuserIfname: Remove a single '\n' from ifname Date: Fri, 22 Jan 2021 18:26:50 +0800 X-OQ-MSGID: <20210122102650.11680-1-274268859@qq.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Cc: Yalei Li <274268859@qq.com>, Yalei Li X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Ovs-vsctl returns a newline result. Signed-off-by: Yalei Li Reviewed-by: Daniel Henrique Barboza --- src/util/virnetdevopenvswitch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virnetdevopenvswitch.c b/src/util/virnetdevopenvswitc= h.c index f9b3369b2a..bd840bd3b7 100644 --- a/src/util/virnetdevopenvswitch.c +++ b/src/util/virnetdevopenvswitch.c @@ -575,6 +575,7 @@ virNetDevOpenvswitchGetVhostuserIfname(const char *path, return 0; } =20 + virStringTrimOptionalNewline(*ifname); if (virNetDevOpenvswitchMaybeUnescapeReply(*ifname) < 0) { VIR_FREE(*ifname); return -1; --=20 2.27.0