validate PAM_NAME_SUFFIX
This commit is contained in:
parent
f76fa704b4
commit
ba2956c03e
@ -25,4 +25,9 @@ file="$1"
|
||||
|
||||
head -1 "$file" |grep -qs '^#%PAM' || exit 0
|
||||
|
||||
if [ -n "$PAM_NAME_SUFFIX" -a -z "${PAM_NAME_SUFFIX##%*}" ]; then
|
||||
echo "error: PAM_NAME_SUFFIX=$PAM_NAME_SUFFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "pam$PAM_NAME_SUFFIX(${file##*/})"
|
||||
|
Loading…
Reference in New Issue
Block a user