From 6adb1ef279537875495d10f7c74f35101dd335fd Mon Sep 17 00:00:00 2001 From: Cody Maloney Date: Wed, 6 Feb 2013 23:22:20 -0700 Subject: 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 Signed-off-by: Karel Zak --- login-utils/libuser.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 login-utils/libuser.h (limited to 'login-utils/libuser.h') diff --git a/login-utils/libuser.h b/login-utils/libuser.h new file mode 100644 index 000000000..7454b997e --- /dev/null +++ b/login-utils/libuser.h @@ -0,0 +1,14 @@ +/* + * libuser.h -- Utilize libuser to set a user attribute + * (c) 2012 by Cody Maloney + * + * this program is free software. you can redistribute it and + * modify it under the terms of the gnu general public license. + * there is no warranty. + * + */ + +#include + +extern int set_value_libuser(const char *service_name, const char *username, + uid_t uid, const char *attr, const char *val); -- cgit v1.2.3-55-g7522