daemon: Fix inverted logic on cache dir check (#2388)

Signed-off-by: David Mulder <dmulder@samba.org>
This commit is contained in:
David Mulder 2023-12-21 15:43:32 -07:00 committed by GitHub
parent fd71a748ca
commit bb6709d88a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -696,7 +696,7 @@ async fn main() -> ExitCode {
); );
return ExitCode::FAILURE 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() 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("<db_par_path_buf invalid>") .unwrap_or("<db_par_path_buf invalid>")
); );