Skip to main content

remote_abort_pattern

Function remote_abort_pattern 

Source
pub fn remote_abort_pattern(command: &str) -> Option<String>
Expand description

Sanitizes a command fragment for best-effort use with pkill -f.

Accepts alphanumerics and a restricted symbol set; stops at the first dangerous metacharacter. Requires at least 3 characters. Never embeds passwords (pattern only).