pgsql: Fix make_relative_path() to support cases where target_path and

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix make_relative_path() to support cases where target_path and
Дата
Msg-id 20051223223433.38E249DC849@postgresql.org
обсуждение исходный текст
Список 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.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/port:
        path.c (r1.50.4.1 -> r1.50.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/path.c.diff?r1=1.50.4.1&r2=1.50.4.2)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix make_relative_path() to support cases where target_path and
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Update info about shared memory space calculation to match CVS