]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/unit.c
user-util: rework how we validate user names
[thirdparty/systemd.git] / src / core / unit.c
index 96e1a6c3208feb136e49bdfe89a56be28445822a..95d574d8d48d32079ed7b3abb3434ab5b4c47c10 100644 (file)
@@ -4287,7 +4287,7 @@ static int user_from_unit_name(Unit *u, char **ret) {
         if (r < 0)
                 return r;
 
-        if (valid_user_group_name(n)) {
+        if (valid_user_group_name(n, 0)) {
                 *ret = TAKE_PTR(n);
                 return 0;
         }