chiark / gitweb /
user-util: add new uid_is_system() helper
authorLennart Poettering <lennart@poettering.net>
Sat, 2 Dec 2017 11:59:21 +0000 (12:59 +0100)
committerSven Eden <yamakuzure@gmx.net>
Sat, 2 Dec 2017 11:59:21 +0000 (12:59 +0100)
commit9fe3995e8e2f9f4159c693663b9cc08dc37ff3f1
tree9e85acc32c96a708aa6b140c794ef678b0cc1ffc
parenta0d39da6b5b076931b9683a37d94b58a8011f966
user-util: add new uid_is_system() helper

This adds uid_is_system() and gid_is_system(), similar in style to
uid_is_dynamic(). That a helper like this is useful is illustrated by
the fact that test-condition.c didn't get the check right so far, which
this patch fixes.
src/basic/user-util.h
src/login/logind-user.c