aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-20 23:41:28 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:26 -0800
commit2bf2764701f3764baca990319cfeb55a28c5e896 (patch)
tree8d4bd4bb33208e2088f0e5cecd667af4fdadfd22
parentc866c06520b786a7ac1844e54f655354d3f8eec2 (diff)
downloadpam-2bf2764701f3764baca990319cfeb55a28c5e896.tar.gz
pam-2bf2764701f3764baca990319cfeb55a28c5e896.tar.bz2
pam-2bf2764701f3764baca990319cfeb55a28c5e896.zip
fix the regex used when suppressing jump counts when reading the saved
config, so that we don't clobber module options with numbers in them
-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 f93aa8ae..2a5ae0c0 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -426,7 +426,8 @@ sub diff_profiles
# us from having to re-parse everything just to fix
# up the jump lengths, when changes to these will
# already show up as inconsistencies elsewhere
- s/(end|[0-9]+)//g;
+ s/(\[[^0-9]*)[0-9]+(.*\])/$1$2/g;
+ s/(\[.*)end(.*\])/$1$2/g;
my (@temp) = ($modname,$_);
push(@saved,\@temp);
}