util: add new uid_is_valid() call
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Sep 2015 11:29:53 +0000 (13:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Sep 2015 07:07:30 +0000 (09:07 +0200)
commita1f686daf55636f9446a4c017f2488a35595395e
treefed98d6c92f557097cb35a055dfca55dd573e8d5
parentfea72cc0336f4d90875cdddc1aa9739dcbb174f5
util: add new uid_is_valid() call

This simply factors out the uid validation checks from parse_uid() and
uses them everywhere. This simply verifies that the passed UID is
neither 64bit -1 nor 32bit -1.
src/basic/util.c
src/basic/util.h
src/libsystemd/sd-login/sd-login.c