delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/04/18/07:57:29

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A4473857722
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1681819010;
bh=GrTZqUQx2/jQNV+wcWuxjoRU1hBLIgZuwkW0z6cRTus=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=iPuxJG7Y5P9/gwXhfjliDwovWJ07sV2i0mqS1T3828rJDC5A3hovOfeYmLeQvu1h1
FUoTRZLLmk2qB7XjFCJ6W9zFBsrt0g96YnCqEnTByDvVkNgSykK7bgXsvBpOauoUXI
Zb38KxE9J9dAMG/LPjywOId8qtLe4jyxww+uPiiw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 296283858D1E
Date: Tue, 18 Apr 2023 13:56:34 +0200
To: Bruno Haible <bruno AT clisp DOT org>
Subject: Re: wrong errno value set by readlinkat()
Message-ID: <ZD6Fcjq7J5RkoU8h@calimero.vinschen.de>
Mail-Followup-To: Bruno Haible <bruno AT clisp DOT org>, cygwin AT cygwin DOT com
References: <12553230 DOT hYdu0Ggh8K AT nimes>
MIME-Version: 1.0
In-Reply-To: <12553230.hYdu0Ggh8K@nimes>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>, cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Apr 18 12:21, Bruno Haible via Cygwin wrote:
> Hi,
> 
> When an empty path argument is passed to the readlinkat() function,
> POSIX:2018 specifies that the function fails with error ENOENT:
> 
> https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html
> "These functions shall fail if:
> ...
> [ENOENT]
>     A component of path does not name an existing file or path is an empty
>     string."
> 
> In Cygwin 3.4.6, readlinkat() fails with error EBADF instead.

Thanks, I pushed a patch.

A test release cygwin-3.5.0-0.283.gfa84aa4dd2fb containing this patch
is building right now.  You can install it via setup as soon as it's
available (roughly in an hour).


Thanks again,
Corinna


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019