Skip to main content

home_of

Function home_of 

Source
pub(crate) fn home_of(user: &str) -> Option<PathBuf>
Expand description

One account’s home directory, out of the password database.

getent passwd where it exists, falling back to dscl on macOS, because choir node tls names an account other than the one running it and HOME describes the wrong one.