Donald Sharp wrote:

> So I think that the correct time to check for safe_location is
> after the directory tree has been built and chdir'ed into.

That makes some sense, since otherwise the code that figures out which directory to
checkout into may be run twice...  it leaves a directory to cleanup in the failure
case though.

What about trying the parent dir too (as determined using the last_component
function) if errno after the chdir is ENOEXIST or whatever...

If both chdirs fail, then safe_location can too since we know that CVS will only
build one level if directories due to a -d switch.

I was about to code this, but if you have it in hand, I'll let you...

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:[EMAIL PROTECTED]         CollabNet ( http://collab.net )
--
I will not fake my way through life.
I will not fake my way through life.
I will not fake my way through life...

          - Bart Simpson on chalkboard, _The Simpsons_




_______________________________________________
Bug-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-cvs

Reply via email to