userdbctl: drop redundant user name validity check
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Apr 2020 20:27:09 +0000 (22:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 17 Apr 2020 10:37:14 +0000 (12:37 +0200)
commit110d89cb652db8b45d665ab8166f004a9b5173a3
tree2fb1677335af88c8c58000b68ca5fb6b2411de04
parentf0300901bac4784b8f672450d7b39b7325a22969
userdbctl: drop redundant user name validity check

The userdb_by_name() invocation immediately following does the same check
anyway, no need to do this twice.

(Also, make sure we exit the function early on failure)

(cherry picked from commit 2aea5883f1d016ec7304acdb59516c30cae92452)
src/userdb/userdbctl.c