From bb6709d88a2813dff9b387a3cb32ad5eb81aeb5f Mon Sep 17 00:00:00 2001 From: David Mulder Date: Thu, 21 Dec 2023 15:43:32 -0700 Subject: [PATCH] daemon: Fix inverted logic on cache dir check (#2388) Signed-off-by: David Mulder --- unix_integration/src/daemon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix_integration/src/daemon.rs b/unix_integration/src/daemon.rs index 030452cfb..f54ea10ab 100644 --- a/unix_integration/src/daemon.rs +++ b/unix_integration/src/daemon.rs @@ -696,7 +696,7 @@ async fn main() -> ExitCode { ); return ExitCode::FAILURE } - if !kanidm_lib_file_permissions::readonly(&i_meta) { + if kanidm_lib_file_permissions::readonly(&i_meta) { warn!("WARNING: DB folder permissions on {} indicate it may not be RW. This could cause the server start up to fail!", db_par_path_buf.to_str() .unwrap_or("") );