diff options
author | Karel Zak | 2012-02-28 11:16:16 +0100 |
---|---|---|
committer | Karel Zak | 2012-02-28 11:16:16 +0100 |
commit | 607e6b7ce8658e552fdffbb99c51cdb01828e27b (patch) | |
tree | ee07bcca5f4375c653c557104dbd8dcb42251d87 /login-utils/logindefs.h | |
parent | test: test 'none' source for mount(8) (diff) | |
download | kernel-qcow2-util-linux-607e6b7ce8658e552fdffbb99c51cdb01828e27b.tar.gz kernel-qcow2-util-linux-607e6b7ce8658e552fdffbb99c51cdb01828e27b.tar.xz kernel-qcow2-util-linux-607e6b7ce8658e552fdffbb99c51cdb01828e27b.zip |
login: support crazy shadow-utils syntax in login.defs
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>
Diffstat (limited to 'login-utils/logindefs.h')
-rw-r--r-- | login-utils/logindefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/login-utils/logindefs.h b/login-utils/logindefs.h index 37d19e1f7..163869dfd 100644 --- a/login-utils/logindefs.h +++ b/login-utils/logindefs.h @@ -5,5 +5,6 @@ extern int getlogindefs_bool(const char *name, int dflt); extern long getlogindefs_num(const char *name, long dflt); extern const char *getlogindefs_str(const char *name, const char *dflt); extern void free_getlogindefs_data(void); +extern int logindefs_setenv(const char *name, const char *conf, const char *dflt); #endif /* UTIL_LINUX_LOGINDEFS_H */ |