Hi Tony,

I had tracked this bug down to a problem in expand_wild() in file 
windows-NT/filesubr.c.  As I recall, the function assumes the working directory always 
refers to the directory where the Edit command was invoked, when in fact the working 
directory is being changed to each subdirectory as the recursion progresses.  As soon 
as it tries to access a file in a subdirectory, an invalid file path is generated.

I fixed this by removing the directory information from the file-spec in expand_wild() 
before attempting to find the file.  I sent you a diff file with my changes, but it 
sounds like you had problems with my fix.  I have not noticed any negative 
side-effects from the change, so I'm curious what bugs my patch introduced.

Regards,
Bill

 -----Original Message-----
From:   Tony Hoyle [mailto:[EMAIL PROTECTED]]
Sent:   Friday, January 18, 2002 8:07 AM
To:     [EMAIL PROTECTED]
Subject:        Re: [Cvsnt] Recursive edit - again

On Fri, 18 Jan 2002 11:48:26 +0000 (UTC), Alberto Barbati
<[EMAIL PROTECTED]> wrote:

>Hi,
>
>as reported some time ago by someone on this list CVSNT had a problem
>handling recursive edit operation on a remote repository (via :ntserver: in
>my case). The symptom is:
>
>>cvs edit
>cvs [edit aborted]: cannot find <first file name here>: No such file or
>directory
>
>This problem is still occurring in build 41. I wouldn't want to test build
>45 as it's beta, can someone please confirm or deny whether the problem is
>still present in that version? From what I read a patch already exists, so I
>hope this little but annoying bug will be fixed soon.
>
The proposed patch broke quite a lot of stuff, so it never went in.

Can you explain what a recursive edit is and how to invoke one, so I
can work out what's going wrong?

Tony

_______________________________________________
Cvsnt mailing list
[EMAIL PROTECTED]
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt


_______________________________________________
Cvsnt mailing list
[EMAIL PROTECTED]
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt

Reply via email to