aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-23 22:34:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-23 22:34:27 +0000
commit13d954d7449aa0ca13a898399b942c0fa8fbdd54 (patch)
tree2db47032fa2b9b25e3173f8367c835527758c206 /src/backend/utils/adt/ruleutils.c
parente6242ba176278ff02af1bb2069a32fc83c176869 (diff)
downloadpostgresql-13d954d7449aa0ca13a898399b942c0fa8fbdd54.tar.gz
postgresql-13d954d7449aa0ca13a898399b942c0fa8fbdd54.zip
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.
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions