src/tools.rs: fix typo
This commit is contained in:
parent
7a550fdc76
commit
bce023c57c
@ -204,7 +204,7 @@ pub fn getpwnam_ugid(username: &str) -> Result<(libc::uid_t, libc::gid_t), Error
|
|||||||
let c_username = std::ffi::CString::new(username).unwrap();
|
let c_username = std::ffi::CString::new(username).unwrap();
|
||||||
let info = unsafe { libc::getpwnam(c_username.as_ptr()) };
|
let info = unsafe { libc::getpwnam(c_username.as_ptr()) };
|
||||||
if info.is_null() {
|
if info.is_null() {
|
||||||
bail!("getwpnam '{}' failed", username);
|
bail!("getpwnam '{}' failed", username);
|
||||||
}
|
}
|
||||||
|
|
||||||
let info = unsafe { *info };
|
let info = unsafe { *info };
|
||||||
|
Loading…
Reference in New Issue
Block a user