pub fn validate_name(name: &str) -> Result<()>
Rejects a profile name that is empty, a path component (./..), or that contains a path separator or NUL — so a name can never escape the profiles directory.
.
..