From 24db3e25796d25cc4d16ff22115c9810ae473a61 Mon Sep 17 00:00:00 2001 From: dietrich Date: Fri, 2 Oct 2020 09:50:02 +0200 Subject: [PATCH] Add warning on unconventional usernames --- src/passwd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/passwd.rs b/src/passwd.rs index 0a2e870..540188d 100644 --- a/src/passwd.rs +++ b/src/passwd.rs @@ -42,7 +42,7 @@ impl<'a> TryFrom<&'a str> for Username<'a> { if USERVALIDATION.is_match(source) { Ok(Self { username: source }) } else if source == "Debian-exim" { - //warn!("username {} is not a valid username. This might cause problems. (It is default in Debian and Ubuntu)", source); + warn!("username {} is not a valid username. This might cause problems. (It is default in Debian and Ubuntu)", source); Ok(Self { username: source }) } else { Err(UserLibError::Message(format!(