[pulseaudio-discuss] [PATCH] core-util: use the generic PATH_MAX variant of pa_realpath on Mac OS X

Mihai Moldovan ionic at ionic.de
Tue May 29 00:21:54 PDT 2012


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 at ionic.de>
---
 src/pulsecore/core-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-core-util-use-the-generic-PATH_MAX-variant-of-pa_rea.patch
Type: text/x-patch
Size: 350 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120529/9c54f2eb/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4493 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120529/9c54f2eb/attachment-0003.bin>


More information about the pulseaudio-discuss mailing list