]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/user-util: properly protect use of gshadow
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 21 Nov 2018 17:09:04 +0000 (18:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Nov 2018 23:57:08 +0000 (00:57 +0100)
commit66a5b5ce9b991327d594f7b635de16999ca54093
tree27310b0584d791eb4bbaff804881dbe76d1f4dc5
parent9d52a6e5a999034864153ad9a14ba3102a8c09c5
basic/user-util: properly protect use of gshadow

Commit 100d5f6ee6 (user-util: add new wrappers for [...] database
files), ammended by commit 4f07ffa8f5 (Use #if instead of #ifdef for
ENABLE_GSHADOW) moved code from sysuser to basic/user-util.

In doing so, the combination of both commits properly propagated the
ENABLE_GSHADOW conditions around the function manipulating gshadow, but
they forgot to protect the inclusion of the gshadow.h header.

Fix that to be able to build on C libraries that do not provide gshadow
(e.g. uClibc-ng, where it does not exist.)
src/basic/user-util.h