aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/selfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-07-05 17:15:16 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-07-05 17:16:36 -0400
commit3f35526479f388d1e3ffee7cf6c84e3212a8ec1a (patch)
treed9853141d6ec8d2b8d1b7f289a515db18d0a4799 /src/backend/utils/adt/selfuncs.c
parentb4234f8fc49fc58ea904f0b9eea0336d5a7930d8 (diff)
downloadpostgresql-3f35526479f388d1e3ffee7cf6c84e3212a8ec1a.tar.gz
postgresql-3f35526479f388d1e3ffee7cf6c84e3212a8ec1a.zip
Don't try to trim "../" in join_path_components().
join_path_components() tried to remove leading ".." components from its tail argument, but it was not nearly bright enough to do so correctly unless the head argument was (a) absolute and (b) canonicalized. Rather than try to fix that logic, let's just get rid of it: there is no correctness reason to remove "..", and cosmetic concerns can be taken care of by a subsequent canonicalize_path() call. Per bug #6715 from Greg Davidson. Back-patch to all supported branches. It appears that pre-9.2, this function is only used with absolute paths as head arguments, which is why we'd not noticed the breakage before. However, third-party code might be expecting this function to work in more general cases, so it seems wise to back-patch. In HEAD and 9.2, also make some minor cosmetic improvements to callers.
Diffstat (limited to 'src/backend/utils/adt/selfuncs.c')
0 files changed, 0 insertions, 0 deletions