Skip to main content

cleanup_socket

Function cleanup_socket 

Source
pub fn cleanup_socket(socket_path: &str)
Expand description

Remove socket file if it exists. Best-effort, never panics. Sockets now live in ~/.synaps-cli/run/ (mode 0700), so symlink attacks from other users are not possible. Still refuse symlinks as defense-in-depth.