get_sockdir
Description:
get the temporary directory for sockets
Get the directory used by the handle to store temporary socket files.
This is different from guestfs_session_tmpdir, as we need shorter paths for sockets (due to the limited buffers of filenames for
UNIX sockets), and guestfs_session_tmpdir may be too long for them.
The environment variable XDG_RUNTIME_DIR controls the default value: If XDG_RUNTIME_DIR is set, then that is the
default. Else /tmp is the default.
Parameters:
| this |
A GuestfsSession object |
Returns:
|
the returned string, or NULL on error |