flatpak / xdg-dbus-proxy

GNU Lesser General Public License v2.1
53 stars 21 forks source link

xdg-dbus-proxy doesn't fail to start if the socket path is too long #16

Open michael-schaller opened 4 years ago

michael-schaller commented 4 years ago

Socket paths are limited to 107 characters (108 minus string termination) on Linux. See man 7 unix for details, specifically sun_path[108].

This means that the socket path can be at max 107 characters long on Linux. If I give a longer socket path to xdg-dbus-proxy then it doesn't fail to start though. Instead applications that try to use the socket fail as the socket doesn't exist in the expected location.

Please fix xdg-dbus-proxy if the socket path is too long. Note that other Unix systems have an even lower limit: https://unix.stackexchange.com/questions/367008/why-is-socket-path-length-limited-to-a-hundred-chars