nss-pam-ldapd branch master updated. 0.9.13-12-gbb9f3aa
[
Date Prev][Date Next]
[
Thread Prev][Thread Next]
nss-pam-ldapd branch master updated. 0.9.13-12-gbb9f3aa
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org, nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.13-12-gbb9f3aa
- Date: Sat, 10 Oct 2026 14:06:05 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via bb9f3aa0a853081603264aa32b08d3384c7bd553 (commit)
from ee1330dda4f683a05dee1722a6fe9fbe7fe63b0d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/nss-pam-ldapd/commit/?id=bb9f3aa0a853081603264aa32b08d3384c7bd553
commit bb9f3aa0a853081603264aa32b08d3384c7bd553
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sat Oct 10 14:00:13 2026 +0200
Fix regex matching for older Python versions
Fixes ad08f81
diff --git a/pynslcd/expr.py b/pynslcd/expr.py
index 15c8b64..8146cf4 100644
--- a/pynslcd/expr.py
+++ b/pynslcd/expr.py
@@ -179,13 +179,13 @@ class DollarExpression(object):
elif self.op in ('#', '##', '%', '%%'):
regex = fnmatch.translate(self.expr.value(variables))
# We mangle the regex to change its behaviour
- regex = regex.replace(r'\Z', r'\z')
+ regex = regex.replace(r'\z', r'\Z')
if self.op == '#':
# ${attr#word} remove shortest match of word
- regex = regex.replace('*', '*?').replace(r'\z',
r'(?P<replace>.*)\z')
+ regex = regex.replace('*', '*?').replace(r'\Z',
r'(?P<replace>.*)\Z')
elif self.op == '##':
# ${attr##word} remove longest match of word
- regex = regex.replace(r'\z', r'(?P<replace>.*?)\z')
+ regex = regex.replace(r'\Z', r'(?P<replace>.*?)\Z')
elif self.op == '%':
# ${attr%word} remove shortest match from right
regex = r'(?P<replace>.*)' + regex.replace('*', '*?')
-----------------------------------------------------------------------
Summary of changes:
pynslcd/expr.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
nss-pam-ldapd
- nss-pam-ldapd branch master updated. 0.9.13-12-gbb9f3aa,
Commits of the nss-pam-ldapd project