aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/createuser.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-23 22:34:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-23 22:34:22 +0000
commit936d43d8423aa1306a8d4d2bc4fb4a6fb4c37116 (patch)
treef74cb5741f2147798c03db0de41ce3adc0151086 /src/bin/scripts/createuser.c
parent98b3c3c450b9c3133f28375dc15c9c9b9bedd820 (diff)
downloadpostgresql-936d43d8423aa1306a8d4d2bc4fb4a6fb4c37116.tar.gz
postgresql-936d43d8423aa1306a8d4d2bc4fb4a6fb4c37116.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/bin/scripts/createuser.c')
0 files changed, 0 insertions, 0 deletions