core-util: use the generic PATH_MAX variant of pa_realpath on Mac OS X

realpath() on OS X behaves GNUish and accepts NULL for resolved_name
only on 10.6 and higher. Older versions will crash, if resolved_name is
NULL.

All versions define PATH_MAX, though. Better play it safe and use the
generic PATH_MAX version of pa_realpath on Mac OS X systems.

Signed-off-by: Mihai Moldovan <ionic@ionic.de>
This commit is contained in:
Mihai Moldovan 2012-05-29 09:21:54 +02:00 committed by Arun Raghavan
parent 017e1c4dda
commit 56ce2c67c2

View file

@ -3003,7 +3003,7 @@ char *pa_realpath(const char *path) {
return NULL;
}
#if defined(__GLIBC__) || defined(__APPLE__)
#if defined(__GLIBC__)
{
char *r;