* 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice...
@ 2002-01-04 10:45 Alexei Lioubimov
2002-01-04 11:02 ` egor duda
0 siblings, 1 reply; 4+ messages in thread
From: Alexei Lioubimov @ 2002-01-04 10:45 UTC (permalink / raw)
To: cygwin
Hello,
I think i've found a bug in cygwin:
I can not use very important CVS command "cvs co -r".
I tried a "cvs co -r mytag myproj" and receive the following:
cvs [checkout aborted]: cannot open directory .../CVS/mypoj/Attic: Not a
directory
It is true -- since i have deleted nothing in myproj yet, i don't have Attic
in it.
I send this error to info-cvs mailing list and they said, that it is due to
opendir() implementation in cygwin (it returns ENOTDIR instead of
ENOENT in most cases :( ).
Will it be corrected in cygwin or in cygwin port of CVS?
Thank you,
Alexei Lioubimov
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice...
2002-01-04 10:45 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice Alexei Lioubimov
@ 2002-01-04 11:02 ` egor duda
2002-01-04 12:16 ` Christopher Faylor
0 siblings, 1 reply; 4+ messages in thread
From: egor duda @ 2002-01-04 11:02 UTC (permalink / raw)
To: Alexei Lioubimov; +Cc: cygwin
Hi!
Friday, 04 January, 2002 Alexei Lioubimov alexeipobox@mtu-net.ru wrote:
AL> cvs [checkout aborted]: cannot open directory .../CVS/mypoj/Attic: Not a
AL> directory
AL> I send this error to info-cvs mailing list and they said, that it is due to
AL> opendir() implementation in cygwin (it returns ENOTDIR instead of
AL> ENOENT in most cases :( ).
this program prints 'errno=2', which is correct ENOENT result.
#include <sys/types.h>
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
int main()
{
DIR* x = opendir ( "/tmp/wazoof" );
if (!x)
printf ( "errno=%d\n", errno);
}
AL> Will it be corrected in cygwin or in cygwin port of CVS?
care to provide a simple self-contained testcase?
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice...
2002-01-04 11:02 ` egor duda
@ 2002-01-04 12:16 ` Christopher Faylor
2002-01-09 1:53 ` egor duda
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Faylor @ 2002-01-04 12:16 UTC (permalink / raw)
To: cygwin
On Fri, Jan 04, 2002 at 09:59:31PM +0300, egor duda wrote:
>Friday, 04 January, 2002 Alexei Lioubimov alexeipobox@mtu-net.ru wrote:
>AL> cvs [checkout aborted]: cannot open directory .../CVS/mypoj/Attic: Not a
>AL> directory
>AL> I send this error to info-cvs mailing list and they said, that it is due to
>AL> opendir() implementation in cygwin (it returns ENOTDIR instead of
>AL> ENOENT in most cases :( ).
>
>this program prints 'errno=2', which is correct ENOENT result.
>
>#include <sys/types.h>
>#include <stdio.h>
>#include <dirent.h>
>#include <errno.h>
>
>int main()
>{
> DIR* x = opendir ( "/tmp/wazoof" );
> if (!x)
> printf ( "errno=%d\n", errno);
>}
>
>AL> Will it be corrected in cygwin or in cygwin port of CVS?
>
>care to provide a simple self-contained testcase?
Egor,
I just checked in a fix for this. Are you using the latest CVS?
I already had a test case sitting around for this so it probably is a
regression and I probably should add something to the test suite.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice...
2002-01-04 12:16 ` Christopher Faylor
@ 2002-01-09 1:53 ` egor duda
0 siblings, 0 replies; 4+ messages in thread
From: egor duda @ 2002-01-09 1:53 UTC (permalink / raw)
To: Christopher Faylor
Hi!
Friday, 04 January, 2002 Christopher Faylor cgf@redhat.com wrote:
CF> On Fri, Jan 04, 2002 at 09:59:31PM +0300, egor duda wrote:
>>Friday, 04 January, 2002 Alexei Lioubimov alexeipobox@mtu-net.ru wrote:
>>AL> cvs [checkout aborted]: cannot open directory .../CVS/mypoj/Attic: Not a
>>AL> directory
>>AL> I send this error to info-cvs mailing list and they said, that it is due to
>>AL> opendir() implementation in cygwin (it returns ENOTDIR instead of
>>AL> ENOENT in most cases :( ).
>>
>>this program prints 'errno=2', which is correct ENOENT result.
>>
>>#include <sys/types.h>
>>#include <stdio.h>
>>#include <dirent.h>
>>#include <errno.h>
>>
>>int main()
>>{
>> DIR* x = opendir ( "/tmp/wazoof" );
>> if (!x)
>> printf ( "errno=%d\n", errno);
>>}
>>
>>AL> Will it be corrected in cygwin or in cygwin port of CVS?
>>
>>care to provide a simple self-contained testcase?
CF> Egor,
CF> I just checked in a fix for this. Are you using the latest CVS?
argh, probably not. it looks like the problem was introduced with
fhandler_cygdrive thingie, and i was using earlier dll. sorry for
confusion.
CF> I already had a test case sitting around for this so it probably is a
CF> regression and I probably should add something to the test suite.
would be nice. i'll try to dig out a testcase (i vaguely remember i
had one that needed some tweaking) and add it to testsuite.
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-09 9:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-04 10:45 1.3.6-6 & CVS: BUG: opendir() returns ENOTDIR whereas ENOENT would probably be a better choice Alexei Lioubimov
2002-01-04 11:02 ` egor duda
2002-01-04 12:16 ` Christopher Faylor
2002-01-09 1:53 ` egor duda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).