summaryrefslogtreecommitdiffstats
path: root/login-utils/Makemodule.am
diff options
context:
space:
mode:
authorCody Maloney2013-02-07 07:22:20 +0100
committerKarel Zak2013-02-13 09:37:15 +0100
commit6adb1ef279537875495d10f7c74f35101dd335fd (patch)
tree0c3680cdc91be62969d805c03591c0dd5ec9ffb3 /login-utils/Makemodule.am
parentchsh-chfn: Move pam auth to its own function, factoring out common code (diff)
downloadkernel-qcow2-util-linux-6adb1ef279537875495d10f7c74f35101dd335fd.tar.gz
kernel-qcow2-util-linux-6adb1ef279537875495d10f7c74f35101dd335fd.tar.xz
kernel-qcow2-util-linux-6adb1ef279537875495d10f7c74f35101dd335fd.zip
chsh: Add libuser support
This is based directly on lchsh which is a part of libuser. libuser.{c,h} exist because exactly the same code is needed for both chsh and chfn. [kzak@redhat.com: cleanup err() usage] Signed-off-by: Cody Maloney <cmaloney@theoreticalchaos.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/Makemodule.am')
-rw-r--r--login-utils/Makemodule.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/login-utils/Makemodule.am b/login-utils/Makemodule.am
index ee853295c..0c5711841 100644
--- a/login-utils/Makemodule.am
+++ b/login-utils/Makemodule.am
@@ -73,6 +73,9 @@ chfn_chsh_ldadd = libcommon.la -lpam -lpam_misc
if HAVE_USER
chfn_chsh_ldflags += $(LIBUSER_LIBS)
chfn_chsh_cflags += $(LIBUSER_CFLAGS)
+chfn_chsh_sources+= \
+ login-utils/libuser.c \
+ login-utils/libuser.h
endif
if HAVE_SELINUX