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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Apr 2020 17:17:52 +0000 (19:17 +0200)
commitd71c24910d01c61a332b669d33c283e420f6e07e
tree544d4aa0da7b1c9394e43e63294b13d469653dc7
parent9ac30702856daa56d9da2ba29496e40773879f12
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)
src/basic/user-util.c
src/test/test-user-util.c