Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 1 Dec 2004 09:56:14 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: truncate() improperly returns EBADF Message-ID: <20041201145614.GB13804@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <20041201084841 DOT GA2356 AT efn DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041201084841.GA2356@efn.org> User-Agent: Mutt/1.4.1i On Wed, Dec 01, 2004 at 12:48:41AM -0800, Yitzchak Scott-Thoennes wrote: >When using truncate(), EBADF is sometimes improperly returned. susv3 >doesn't list this as a possible errno value for this function. In >particular, ENOENT should be returned when when path doesn't exist and >EACCES when write permission is denied. Thanks for the test case. I've checked in a fix which should rectify this behavior. It will be in the next snapshot. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/