postgresql/src
Tom Lane 8525419947 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.
2012-07-05 17:16:11 -04:00
..
backend Remove support for using wait3() in place of waitpid(). 2012-07-05 14:00:40 -04:00
bin Don't try to trim "../" in join_path_components(). 2012-07-05 17:16:11 -04:00
include Remove support for using wait3() in place of waitpid(). 2012-07-05 14:00:40 -04:00
interfaces Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
makefiles Remove BSD/OS (BSDi) port. There are no known users upgrading to 2012-05-03 10:58:44 -04:00
pl Revert part of the previous patch that avoided using PLy_elog(). 2012-07-05 23:40:25 +03:00
port Don't try to trim "../" in join_path_components(). 2012-07-05 17:16:11 -04:00
template Remove BSD/OS (BSDi) port. There are no known users upgrading to 2012-05-03 10:58:44 -04:00
test Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
timezone Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
tools Fix missing regex slash that caused perltidy to get confused on 2012-07-04 21:58:48 -04:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in Make init-po and update-po recursive make targets 2012-06-29 14:01:54 +03:00
Makefile.shlib Remove BSD/OS (BSDi) port. There are no known users upgrading to 2012-05-03 10:58:44 -04:00
nls-global.mk
win32.mak