mirror of
https://github.com/telemt/telemt.git
synced 2026-04-15 17:44:11 +03:00
Fixes for test + Rustfmt
This commit is contained in:
@@ -376,7 +376,9 @@ pub fn drop_privileges(
|
||||
unistd::setuid(uid).map_err(DaemonError::PrivilegeDrop)?;
|
||||
info!(uid = uid.as_raw(), "Dropped user privileges");
|
||||
|
||||
if uid.as_raw() != 0 && let Some(pid) = pid_file {
|
||||
if uid.as_raw() != 0
|
||||
&& let Some(pid) = pid_file
|
||||
{
|
||||
let parent = pid.path.parent().unwrap_or(Path::new("."));
|
||||
let probe_path = parent.join(format!(
|
||||
".telemt_pid_probe_{}_{}",
|
||||
|
||||
Reference in New Issue
Block a user