[PATCH v2 0/4] Add support for using libuser to chsh and chfn

Cody Maloney
2013-01-13T09:12:53Z

Builds on v1 addressing comments. Factors out some of the common code
between chsh and chfn (auth.c, libuser.c), hides almost all of the
libuser interaction in libuser.c

The last two patches can/should probably be squashed into one commit
for committing to the repository.

Cody Maloney (4):
chsh-chfn: Add flag for enabling/disabling libuser support.
chsh-chfn: Move pam auth to its own function, factoring out common
code
chsh: Add libuser support
chfn: Add libuser support

configure.ac | 17 ++++++++++
login-utils/Makemodule.am | 10 ++++++
login-utils/auth.c | 47 ++++++++++++++++++++++++++
login-utils/auth.h | 13 ++++++++
login-utils/chfn.c | 58 ++++++++++++++------------------
login-utils/chsh.c | 55 ++++++++++++++-----------------
login-utils/libuser.c | 84 +++++++++++++++++++++++++++++++++++++++++++++++
login-utils/libuser.h | 14 ++++++++
8 files changed, 234 insertions(+), 64 deletions(-)
create mode 100644 login-utils/auth.c
create mode 100644 login-utils/auth.h
create mode 100644 login-utils/libuser.c
create mode 100644 login-utils/libuser.h

--
1.8.1