Skip to main content

socket_fits

Function socket_fits 

Source
fn socket_fits(dir: &Path) -> bool
Expand description

Whether ssh can bind a socket in dir: the longest path it binds is dir/<name hash>-<40-hex %C>.<16 random> (SOCKET_NAME_MAX), and it has to fit in sun_path with its NUL.