From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id 6507538E9DAB for ; Thu, 6 Jun 2024 16:49:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6507538E9DAB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6507538E9DAB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717692549; cv=none; b=c1fpqa7ZktLavijvmk2KbNq23gxAdY63OmxCNl9M+7CNN06AArCK+EsvkEtAh4ddYqrOBbOM939YI27LmYNtdiwQ8osOTH/I5OiYfg/vLz8NjPgV1oPzi5bTd3st7PoaeiR+lQrl2iQpTbAYSVc3Dc+SAM2Nqrav0tC1xFNxkdA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717692549; c=relaxed/simple; bh=0+GdxX1rGaQhU/0p8U2IDCPeoYrkFViXdIeV0MmC+8o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=sinOaFh/nzEMmziJvZ5R+1ZGb6QaPEWq4a7IRpnSGqdnvEA1/BPZ/wo/f83YQV7YbfRXxiH0lwvmmvVbsTugIl1hRTxuC9yLeJu/bXfQkAgeFmVeykfLe8obL01/Zk29DJdH2ntS/4u2oyljj5xinOXzNlKauTnFbID0WXH1GjY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5010a.ext.cloudfilter.net ([10.0.29.199]) by cmsmtp with ESMTPS id Eut0so3iertmgFGIUsZGVY; Thu, 06 Jun 2024 16:49:06 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id FGITs3xTb6exfFGITsg8bI; Thu, 06 Jun 2024 16:49:05 +0000 X-Authority-Analysis: v=2.4 cv=LaU66Cfi c=1 sm=1 tr=0 ts=6661e881 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=T1WGqf2p2xoA:10 a=Qbun_eYptAEA:10 a=20KFwNOVAAAA:8 a=zstS-IiYAAAA:8 a=mnOP111z1boCDaOQgsgA:9 a=zgiPjhLxNE0A:10 a=4G6NA9xxw8l3yy4pmD5M:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ygLeHFnMEqa4DgXPjlEUZpE3MgoixiHaWoKfRbWLmIU=; b=h5X+cA9eX3j4sucfg0SVWSk1Js c20ne6mPrfzuMb4Lg0kXyhL/0rY/35Ooi1d0R6khmvWROyZLEkaKncId6Jci/FODqZjZbAIfvjejV GUfTkXX9W/ZSbUBgBNfk9pT58; Received: from 75-166-134-4.hlrn.qwest.net ([75.166.134.4]:54084 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sFGIT-0011nd-0O; Thu, 06 Jun 2024 10:49:05 -0600 From: Tom Tromey To: Andrew Burgess Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 1/8] gdb/fileio: fix errno for packets where an attachment is expected In-Reply-To: (Andrew Burgess's message of "Wed, 5 Jun 2024 14:15:08 +0100") References: X-Attribution: Tom Date: Thu, 06 Jun 2024 10:49:04 -0600 Message-ID: <87sexqm2yn.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.134.4 X-Source-L: No X-Exim-ID: 1sFGIT-0011nd-0O X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-134-4.hlrn.qwest.net (murgatroyd) [75.166.134.4]:54084 X-Source-Auth: tom+tromey.com X-Email-Count: 10 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfHJeaxLMjUtMKJlG1/ksz1jkjqx8G19ewd8zfI9GwriaQydVg6YtIu94b6P+X4Kuqh0R09bJKgOpukuQu6yz7W5k/0dAjcPiQfaAtF+gX1IekKucUasO zLmpugcjXzLPCc3Q0m/QATEoOSjV/MVuf28CNlmwePY7zaf0eXQWXBROAWH9s2hHL9gBIDO7q7FUGAzOxWnoeo5NTl+C4HS7+uA= X-Spam-Status: No, score=-3014.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Andrew" == Andrew Burgess writes: Andrew> I ran into this issue while working on another patch. In that patch I Andrew> was checking the error code returned by a remote readlink call and Andrew> spotted that when I passed an invalid path I got EINVAL instead of Andrew> ENOENT. This patch fixes this issue. Andrew> Unfortunately the patch I was working on evolved, and my need to check Andrew> the error code went away, and so, right now, I have no way to reveal Andrew> this bug. But I think this is an obviously correct fix, and worth Andrew> merging even without a test. Makes sense to me. Thanks for the clear explanation. Approved-By: Tom Tromey Tom