diff options
Diffstat (limited to 'system/xrdp/xrdp-v0.6.1_disabled.diff')
-rw-r--r-- | system/xrdp/xrdp-v0.6.1_disabled.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/system/xrdp/xrdp-v0.6.1_disabled.diff b/system/xrdp/xrdp-v0.6.1_disabled.diff new file mode 100644 index 0000000000..42855c89d3 --- /dev/null +++ b/system/xrdp/xrdp-v0.6.1_disabled.diff @@ -0,0 +1,26 @@ +From 6f195b64890e08d3fbbbb792f45a7d94d641c914 Mon Sep 17 00:00:00 2001 +From: mancha <mancha1 AT zoho DOT com> +Date: Wed, 18 Feb 2015 +Subject: Fix inactive account determination + +sesman: fix so shadow accounts aren't incorrectly classified "inactive" +as might happen if sp_max/sp_inact fields are empty or sp_lstchg=0. + +--- + sesman/verify_user.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +--- a/sesman/verify_user.c ++++ b/sesman/verify_user.c +@@ -323,7 +323,10 @@ auth_account_disabled(struct spwd* stp) + return 1; + } + +- if (today >= (stp->sp_lstchg+stp->sp_max+stp->sp_inact)) ++ if ((stp->sp_max >= 0) && ++ (stp->sp_inact >= 0) && ++ (stp->sp_lstchg > 0) && ++ (today >= (stp->sp_lstchg + stp->sp_max + stp->sp_inact))) + { + return 1; + } |