truncate() improperly returns EBADF

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Wed Dec 1 14:56:00 GMT 2004


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/



More information about the Cygwin mailing list