Accepting request 840140 from home:sbrabec:branches:util-linux-multibuild

- pam-login_defs-check.sh: Fix the regexp to get a real variable
  list (boo#1164274).

OBS-URL: https://build.opensuse.org/request/show/840140
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=220
This commit is contained in:
Josef Möllers 2020-10-08 08:51:25 +00:00 committed by Git OBS Bridge
parent daeda00e6c
commit ca72e1f704
2 changed files with 8 additions and 2 deletions

View File

@ -9,10 +9,10 @@ set -o errexit
echo -n "Checking login.defs variables in pam... " >&2
grep -rh LOGIN_DEFS . |
sed -n 's/^.*search_key *("\([A-Z0-9_]*\)", *LOGIN_DEFS).*$/\1/p' |
sed -n 's/^.*search_key *([A-Za-z_]*, *[A-Z_]*LOGIN_DEFS, *"\([A-Z0-9_]*\)").*$/\1/p' |
LC_ALL=C sort -u >pam-login_defs-vars.lst
if test $(sha1sum pam-login_defs-vars.lst | sed 's/ .*$//') != da39a3ee5e6b4b0d3255bfef95601890afd80709 ; then
if test $(sha1sum pam-login_defs-vars.lst | sed 's/ .*$//') != 3c6e0020c31609690b69ef391654df930b74151d ; then
echo "does not match!" >&2
echo "Checksum is: $(sha1sum pam-login_defs-vars.lst | sed 's/ .*$//')" >&2

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 8 02:33:16 UTC 2020 - Stanislav Brabec <sbrabec@suse.com>
- pam-login_defs-check.sh: Fix the regexp to get a real variable
list (boo#1164274).
-------------------------------------------------------------------
Wed Jun 24 13:06:33 UTC 2020 - Josef Möllers <josef.moellers@suse.com>