aboutsummaryrefslogtreecommitdiff
path: root/system/xrdp/xrdp-v0.6.1_disabled.diff
diff options
context:
space:
mode:
authormancha <mancha1@hush.com>2015-02-20 16:08:35 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-20 16:08:35 +0700
commit0f94b3b5786e7346a0b202a3632994bbff0185f2 (patch)
tree3a77c8ebf4a69fc03521da3862d9f49d74c056ea /system/xrdp/xrdp-v0.6.1_disabled.diff
parentbb953ca21b89a196f13dbd5d56ba810a4f7c4d04 (diff)
system/xrdp: Rebuilt with patches.
Thanks to Mancha. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/xrdp/xrdp-v0.6.1_disabled.diff')
-rw-r--r--system/xrdp/xrdp-v0.6.1_disabled.diff26
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 0000000000000..42855c89d30f8
--- /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;
+ }