From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id DBDBF941ABC for ; Wed, 18 Oct 2023 17:24:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ZNV6l9HHVd8GwMzREQol92Jph2LqYhVGOtZ+v2BQXhI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1697649888; v=1; b=nOzwUmgH7qF91ZOJrTgYy3dDt5GafdiRnhCjOarTg5xrjfQRIQ/r6dKXVDKj4PvlKEL5Tr1h /52BlkSe2OdHHEorybZlAlQW1S8h6zFzAo3ROOv2sZD0LJepJReanJPmAVK02MkCWdV19AjtBYA IOVku4Cx0GYn4IjhqFcq+5iY= X-Received: by 127.0.0.2 with SMTP id 0iCCYY7687511x8M3r45McWC; Wed, 18 Oct 2023 10:24:48 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.287821.1697649882695958553 for ; Wed, 18 Oct 2023 10:24:42 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-433-CaoJcdzbMgmDgmgOYGx32g-1; Wed, 18 Oct 2023 13:24:38 -0400 X-MC-Unique: CaoJcdzbMgmDgmgOYGx32g-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5535988B7A2; Wed, 18 Oct 2023 17:24:38 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.192.202]) by smtp.corp.redhat.com (Postfix) with ESMTP id A28FD492BEE; Wed, 18 Oct 2023 17:24:36 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Jordan Justen Subject: [edk2-devel] [PATCH] OvmfPkg/VirtioFsDxe: tolerate opening an abs. pathname rel. to a reg. file Date: Wed, 18 Oct 2023 19:24:34 +0200 Message-Id: <20231018172434.91280-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: hcZwu3GakVI5qLUm3wnLDCD0x7686176AA= Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="US-ASCII"; x-default=true X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=nOzwUmgH; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io UmVmZXJyaW5nIHRvIGEgZmlsZSByZWxhdGl2ZSB0byBhIHJlZ3VsYXIgZmlsZSBtYWtlcyBubyBz ZW5zZSAob3IgYXQgbGVhc3QKaXQgY2Fubm90IGJlIGltcGxlbWVudGVkIGNvbnNpc3RlbnRseSB3 aXRoIGhvdyBhIGZpbGUgaXMgcmVmZXJyZWQgdG8KcmVsYXRpdmU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