]> code.delx.au - pulseaudio/commit
core-util: Attempt to make runtime paths smaller to avoid 108 char limit.
authorColin Guthrie <colin@mageia.org>
Wed, 14 Mar 2012 01:41:48 +0000 (01:41 +0000)
committerColin Guthrie <colin@mageia.org>
Wed, 28 Mar 2012 10:17:29 +0000 (11:17 +0100)
commit664985b7c2fdcc218b4c649f8b52f5047d778659
treef7bef2988817c3a47f107e2a0bd6bce97039bed7
parent5e9e0d50863b60c329cfc8ab85164fe7f7111532
core-util: Attempt to make runtime paths smaller to avoid 108 char limit.

When the runtime path gets long (which can happen on some NFS
mounts where $HOME is not just /home/$USER), it can grow
longer the 108 char limit imposed by sockaddr_un.sun_path.

This just calls realpath which should ultimately point into
/tmp in most cases and result in a much smaller path.

Only do this when we are adding on a name component to the
runtime path so creating the actual symlink will still get
the original, long name, but this shouldn't be a problem
as it never goes into the sockaddr_un.sun_path.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44680
src/pulsecore/core-util.c