This is the mail archive of the cygwin-developers@cygwin.com 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]

Re: A bug report without a patch so just delete it.


On Tue, Nov 06, 2001 at 06:42:38PM -0500, Earnie Boyd wrote:
>I've found an instance of where the path conversion routines fail.  I've
>attached a relevant portion of an strace. The command
>   cvs commit -m"foo" -r cygwin-binutils-2_11-20011002-1
>fails with an error
>   cvs commit: in directory doc
>   cvs [commit aborted]: there is no version here; do 'cvs checkout'
>first
>which happens because cvs's filesubr.c doesn't stat doc as a dir because
>the path conversion routines have added and extra subdir doc/doc/.
>
>I should add that specifying doc on the command line gives good
>results.  This also occurred in the previous release in case your
>interested so I guess I won't fall back to 1.3.3 ;^)

Did you notice that the current working directory is
  /usr/src/binutils/2.11/1/bfd/doc

and you're trying to open a file called

  doc/CVS/Repository

?

So, either cvs is confused, your your directory layout is garbled, or you
didn't actually include the relevant part of the strace which would
indicate where this was actually screwing up in cygwin.

cgf

>5479 12014973 [main] cvs 325 _open: open (doc/CVS/Repository, 0x0)^M
>  137 12015110 [main] cvs 325 normalize_posix_path: src doc/CVS/Repository^M
>  104 12015214 [main] cvs 325 cwdstuff::get: posix /usr/src/binutils/2.11/1/bfd/doc^M
>  101 12015315 [main] cvs 325 cwdstuff::get: (/usr/src/binutils/2.11/1/bfd/doc) = cwdstuff::get (0x255F484, 260, 1, 0), errno 2^M
>  104 12015419 [main] cvs 325 normalize_posix_path: /usr/src/binutils/2.11/1/bfd/doc/doc/CVS/Repository = normalize_posix_path (doc/CVS/Repository)^M
>  106 12015525 [main] cvs 325 mount_info::conv_to_win32_path: conv_to_win32_path (/usr/src/binutils/2.11/1/bfd/doc/doc/CVS/Repository)^M
>  116 12015641 [main] cvs 325 mount_info::conv_to_win32_path: src_path /usr/src/binutils/2.11/1/bfd/doc/doc/CVS/Repository, dst c:\cygmnt\usr\src\binutils\2.11\1\bfd\doc\doc\CVS\Repository, flags 0xA, rc 0^M
>  524 12016165 [main] cvs 325 symlink_info::check: GetFileAttributesA (c:\cygmnt\usr\src\binutils\2.11\1\bfd\doc\doc\CVS\Repository) failed^M
>


-- 
cgf@redhat.com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/


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