summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-20 00:20:16 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:24 -0800
commitf3853092b7b42ff4bfb489ff825ee858732f3215 (patch)
tree4667d081dc4a0c380162cd05eabcff962470b041 /debian
parent098e7d1255327f696af468765a04837f53937f29 (diff)
really fix up the regex used for suppressing jump counts to only apply when it
appears between brackets
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/local/pam-auth-update3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index 168bedf8..2373d214 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -436,7 +436,8 @@ sub diff_profiles
# FIXME: the key isn't derived from the config
# name, so collisions are possible if more
# than one config references the same module
- $_ =~ s/=[0-9]+/=/g;
+
+ $_ =~ s/(\[[^0-9]*)[0-9]+(.*\])/$1$2/g;
# check if this is a match for the current line
if ($_ =~ /^\Q$curmod\E\s*(.*)$/) {
$found = 1;