use $PAM_SO_SUFFIX

This commit is contained in:
Дмитрий Левин 2003-06-17 14:32:30 +00:00
parent 276ced7ca5
commit ebec74ba89

View File

@ -26,7 +26,10 @@ file="$1"
head -1 "$file" |grep -qs '^#%PAM' || exit 0
# pam_module.so
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib/security/\)\?\([^[:space:]]\+\).*#\4#pg' <"$file" |sort -u
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib/security/\)\?\([^.[:space:]]\+\.so\)[[:space:]].*#\4'$PAM_SO_SUFFIX'#pg' <"$file" |sort -u
# pam_module.so*
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+\(requisite\|required\|sufficient\|optional\)[[:space:]]\+\(/lib/security/\)\?\([^.[:space:]]\+\.so[^[:space:]]\+\).*#\4#pg' <"$file" |sort -u
# libpam(include)
sed -ne 's#^\(account\|auth\|password\|session\)[[:space:]]\+include[[:space:]].*#libpam(include)#pg' <"$file" |sort -u