search for: streamlocal_bind_root_directory

Displaying 1 result from an estimated 1 matches for "streamlocal_bind_root_directory".

2017 Jun 16
2
[PATCH] allow relative path in streamlocal forwarding
...e, struct Forward *fwd, error("No forward path name."); return 0; } - if (strlen(fwd->listen_path) > sizeof(sunaddr.sun_path)) { - error("Local listening path too long: %s", fwd->listen_path); + + if (fwd->listen_path[0] != '/') { + if (fwd_opts->streamlocal_bind_root_directory == NULL) { + error("Relative path is not enabled."); + return 0; + } + listen_path = expand_relative_socket_path(fwd->listen_path, + fwd_opts->streamlocal_bind_root_directory); + if (listen_path == NULL) + return 0; + } else + listen_path = xstrdup(fwd->listen_path...