diff options
Diffstat (limited to 'modules/pam_setquota/pam_setquota.c')
-rw-r--r-- | modules/pam_setquota/pam_setquota.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/pam_setquota/pam_setquota.c b/modules/pam_setquota/pam_setquota.c index ec45baac..73445e29 100644 --- a/modules/pam_setquota/pam_setquota.c +++ b/modules/pam_setquota/pam_setquota.c @@ -8,6 +8,8 @@ Copyright © 2016 Keller Fuchs <kellerfuchs@hashbang.sh> */ +#include "pam_inline.h" + #include <sys/types.h> #include <sys/quota.h> #include <linux/quota.h> @@ -22,7 +24,6 @@ #include <security/_pam_macros.h> #include <security/pam_ext.h> #include <security/pam_modutil.h> -#include "pam_inline.h" #ifndef PATH_LOGIN_DEFS # define PATH_LOGIN_DEFS "/etc/login.defs" @@ -201,6 +202,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags UNUSED, */ if (val) { param.start_uid = str_to_uid(pamh, val, param.start_uid, PATH_LOGIN_DEFS":UID_MIN"); + _pam_drop(val); } /* Parse parameter values |