Skip to main content

compute_socket_path

Function compute_socket_path 

Source
pub fn compute_socket_path(project: &Path) -> PathBuf
Expand description

Compute the socket path for a project (Unix).

Path format: {temp_dir}/tldr-{hash}.sock Uses same hash as PID file for consistency.

§Security (TIGER-P3-01)

The path is validated to ensure it stays within the temp directory and doesn’t escape via symlinks or path traversal.