Remove support for old realpath() API
authorPeter Eisentraut <[email protected]>
Mon, 12 Aug 2024 05:59:40 +0000 (07:59 +0200)
committerPeter Eisentraut <[email protected]>
Mon, 12 Aug 2024 06:04:35 +0000 (08:04 +0200)
commit94980c45674fc2d1125f3ba7ce0bb5d34f770e00
treef72c39788a7ec522e7eb6aa50d91683210b3d02a
parentf0d11275954719fd5d0281d4135e5c78de46e099
Remove support for old realpath() API

The now preferred way to call realpath() is by passing NULL as the
second argument and get a malloc'ed result.  We still supported the
old way of providing our own buffer as a second argument, for some
platforms that didn't support the new way yet.  Those were only
Solaris less than version 11 and some older AIX versions (7.1 and
newer appear to support the new variant).  We don't support those
platforms versions anymore, so we can remove this extra code.

Reviewed-by: Heikki Linnakangas <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/9e638b49-5c3f-470f-a392-2cbedb2f7855%40eisentraut.org
src/common/exec.c