We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a32997 + b450b57 commit 8ad6880Copy full SHA for 8ad6880
src/handlers.rs
@@ -347,9 +347,9 @@ impl NetgroupWithName {
347
};
348
349
if unsafe { setnetgrent(netgroup_name.as_ptr() as *const c_char) } != 1 {
350
- anyhow::bail!("Error: Could not open netgroup {}", self.name);
+ //setnetgrent returns 0 if the netgroup cannot be found
351
+ return Ok(results);
352
}
-
353
let mut buffer = vec![0 as c_char; 4096];
354
let mut host: *mut c_char = std::ptr::null_mut();
355
let mut user: *mut c_char = std::ptr::null_mut();
0 commit comments