Re: PATCH: make_relative_prefix oddity

2007-03-13 Thread Daniel Jacobowitz
On Mon, Mar 12, 2007 at 10:47:28PM -0700, Mark Mitchell wrote: It treats only /opt as a common component of the two paths, rathe than /opt/foo. If you use /opt/foo/ (instead of /opt/foo) for the last argument, the answer is as I expected. This seems odd to me; is it the intended behavior?

Re: PATCH: make_relative_prefix oddity

2007-03-13 Thread Alexandre Oliva
On Mar 13, 2007, Mark Mitchell [EMAIL PROTECTED] wrote: It treats only /opt as a common component of the two paths, rathe than /opt/foo. If you use /opt/foo/ (instead of /opt/foo) for the last argument, the answer is as I expected. This seems odd to me; is it the intended behavior? IIRC

PATCH: make_relative_prefix oddity

2007-03-12 Thread Mark Mitchell
I've noticed some behavior with make_relative_prefix that surprised me. In particular, consider this program: #include stdio.h extern char * make_relative_prefix (const char *progname, const char *bin_prefix, const