Skip to content

Commit

Permalink
Merge pull request #272 from himmelblau-idm/dependabot/cargo/notify-d…
Browse files Browse the repository at this point in the history
…ebouncer-full-0.4

deps(rust): update notify-debouncer-full requirement from 0.3 to 0.4
  • Loading branch information
dmulder authored Nov 5, 2024
2 parents 87d9e74 + a6ccf5d commit 98da0a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ kanidm_lib_crypto = { path = "./src/crypto", version = "0.7.0" }
kanidm_utils_users = { path = "./src/users" }
walkdir = "2"
csv = "1.2.2"
notify-debouncer-full = { version = "0.3" }
notify-debouncer-full = { version = "0.4" }
utoipa = "4.0.0"
utoipa-swagger-ui = "4.0.0"
opentelemetry = { version = "0.20.0" }
Expand Down
6 changes: 3 additions & 3 deletions src/daemon/src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ use tokio_util::codec::{Decoder, Encoder, Framed};

use kanidm_hsm_crypto::{soft::SoftTpm, AuthValue, BoxedDynTpm, Tpm};

use notify_debouncer_full::{new_debouncer, notify::RecursiveMode, notify::Watcher};
use notify_debouncer_full::{new_debouncer, notify::RecursiveMode};

mod broker;
use broker::Broker;
Expand Down Expand Up @@ -1051,10 +1051,10 @@ async fn main() -> ExitCode {
let _ = inotify_tx.try_send(true);
})
.and_then(|mut debouncer| {
debouncer.watcher().watch(Path::new("/etc/passwd"), RecursiveMode::NonRecursive)
debouncer.watch(Path::new("/etc/passwd"), RecursiveMode::NonRecursive)
.map(|()| debouncer)
})
.and_then(|mut debouncer| debouncer.watcher().watch(Path::new("/etc/group"), RecursiveMode::NonRecursive)
.and_then(|mut debouncer| debouncer.watch(Path::new("/etc/group"), RecursiveMode::NonRecursive)
.map(|()| debouncer)
)

Expand Down
3 changes: 0 additions & 3 deletions src/users/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ pub fn get_user_name_by_uid(uid: uid_t) -> Option<OsString> {
let mut buf = vec![0; 2048];
let mut result = ptr::null_mut::<c_passwd>();

#[cfg(feature = "logging")]
trace!("Running getpwuid_r for user #{}", uid);

loop {
let r =
unsafe { libc::getpwuid_r(uid, &mut passwd, buf.as_mut_ptr(), buf.len(), &mut result) };
Expand Down

0 comments on commit 98da0a3

Please sign in to comment.