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 Subject: Re: wrong errno value set by readlinkat() Message-ID: Mail-Followup-To: Bruno Haible , cygwin AT cygwin DOT com References: <12553230 DOT hYdu0Ggh8K AT nimes> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <12553230.hYdu0Ggh8K@nimes> X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen , cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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