From aff9d82d89f7c73446bb1ed34f316f9876c43e78 Mon Sep 17 00:00:00 2001 From: Jan Kobler Date: Sun, 8 Jan 2023 16:24:51 +0100 Subject: [PATCH] pam.eclass: cleanpamd use basename Function cleanpamd is called with a list of full path names. Use only the basename of each path. Signed-off-by: Jan Kobler --- eclass/pam.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/pam.eclass b/eclass/pam.eclass index 9928e746e41e..31d84e93f1c1 100644 --- a/eclass/pam.eclass +++ b/eclass/pam.eclass @@ -204,7 +204,7 @@ pamd_mimic() { cleanpamd() { while [[ -n $1 ]]; do if ! has_version sys-libs/pam; then - sed -i -e '/pam_shells\|pam_console/s:^:#:' "${D}/etc/pam.d/$1" || die + sed -i -e '/pam_shells\|pam_console/s:^:#:' "${D}/etc/pam.d/$(basename $1)" || die fi shift -- 2.35.1