pgsql: Fix make_relative_path() to support cases where target_path and - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix make_relative_path() to support cases where target_path and
Date
Msg-id 20051223223423.3C60A9DC83B@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix make_relative_path() to support cases where target_path and bin_path
differ by more than the last directory component.  Instead of insisting
that they match up to the last component, accept whatever common prefix
they have, and try to replace the non-matching part of bin_path with
the non-matching part of target_path in the actual executable's path.
In one way this is tighter than the old code, because it insists on
a match to the part of bin_path we want to substitute for, rather than
blindly stripping one directory component from the executable's path.
Per gripe from Martin Pitt and subsequent discussion.

Modified Files:
--------------
    pgsql/src/port:
        path.c (r1.62 -> r1.63)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/path.c.diff?r1=1.62&r2=1.63)

pgsql-committers by date:

Previous
From: sven@pgfoundry.org (Sven Klemm)
Date:
Subject: wikipedia - wikipgedia: backporting changes from mediawiki head added
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix make_relative_path() to support cases where target_path and