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 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html