user-util: Allow names starting with a digit
authorBalint Reczey <balint.reczey@canonical.com>
Wed, 18 Mar 2020 17:29:02 +0000 (18:29 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 2 Nov 2020 18:05:19 +0000 (19:05 +0100)
commitf06434cc51eedd72f7d4a640a1fa118f57a5e68e
treeb33a4304bb2942a581a081e56fd426e907a47043
parentfa1fa19951fdadd63f2b5df6224678f91753f260
user-util: Allow names starting with a digit

In 1a29610f5fa1bcb2eeb37d2c6b79d8d1a6dbb865 the change inadvertedly
disabled names with digit as the first character. This follow-up change
allows a digit as the first character in compat mode.

Fixes: #15141
(cherry picked from commit 93c23c9297e48e594785e0bb9c51504aae5fbe3e)

Related: #1848373
src/basic/user-util.c
src/test/test-user-util.c