This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: truncate() improperly returns EBADF


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]