Function darkfi::util::path::home_fallback

source ·
unsafe fn home_fallback() -> Option<OsString>
Expand description

Get the home directory from the passwd entry of the current user using getpwuid_r(3). If it manages, returns an OsString, otherwise returns None.