fingerd: respect ~/.nofinger
All checks were successful
Build and test / check (push) Successful in 1m6s
Build and test / test (push) Successful in 2m9s
Build and test / build (push) Successful in 2m21s
Build and test / docs (push) Successful in 3m34s

This commit is contained in:
2026-02-12 13:20:26 +09:00
parent f9e60b0f03
commit 97e359004b

View File

@@ -23,6 +23,11 @@ pub fn get_local_user(username: &str) -> anyhow::Result<Option<FingerResponseUse
}
};
let nofinger_path = user_entry.dir.join(".nofinger");
if nofinger_path.exists() {
return Ok(None);
}
let full_name = user_entry.name;
let home_dir = user_entry.dir.clone();
let shell = user_entry.shell;