summaryrefslogtreecommitdiffstats
path: root/login-utils/logindefs.h
Commit message (Collapse)AuthorAgeFilesLines
* login-utils/logindefs: clenaup APIKarel Zak2019-01-111-1/+1
| | | | | | The default value should be unsigned if the result is also unsigned... Signed-off-by: Karel Zak <kzak@redhat.com>
* su: add control structKarel Zak2017-09-181-1/+1
| | | | | | | | * setup logindefs loader by function rather than by global pointer * move basic booleans to the su_context struct Signed-off-by: Karel Zak <kzak@redhat.com>
* lslogins: add functionalityOndrej Oprala2014-05-151-1/+1
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* login: extract get_hushlogin_statusOndrej Oprala2014-05-151-0/+2
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* logindefs: change getlogindefs_num() to return unsigned longSami Kerola2012-06-021-1/+1
| | | | | | | Where ever getlogindefs_num() is called return value is always expected to be unsigned, such as sleep() input, gid_t or mode_t. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* use existing logindefs.c and pathnames.hLudwig Nussel2012-05-251-0/+2
| | | | | | I'm not sure having /usr/local in _PATH_DEFPATH_ROOT and even putting it in front is such a good idea though. /usr/local might be on NFS so could prevent root from logging in if the network is down.
* login: support crazy shadow-utils syntax in login.defsKarel Zak2012-02-281-0/+1
| | | | | | | | | | | | | standard syntax for FOO=data: ENV_FOO data additional syntax: ENV_FOO FOO=data Reported-by: Colin Guthrie colin@mageia.org Signed-off-by: Karel Zak <kzak@redhat.com>
* login: add login.defs code and testsKarel Zak2011-10-261-0/+9
The new logindefs.c file contains /etc/login.defs parser and functions for searching in the list of the login default variables. The patch also contains a new regression test for the code. Based on pam_login-4.0 from Suse. Signed-off-by: Karel Zak <kzak@redhat.com>