From fb686c6ea542e6e3a9848e1fc01e4a48bed5acb3 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 25 Sep 2019 11:25:38 +0200 Subject: [pam] backward compat: source in subshells --- core/modules/pam/data/opt/openslx/scripts/pam_script_auth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/pam') diff --git a/core/modules/pam/data/opt/openslx/scripts/pam_script_auth b/core/modules/pam/data/opt/openslx/scripts/pam_script_auth index 60604874..0e764f37 100755 --- a/core/modules/pam/data/opt/openslx/scripts/pam_script_auth +++ b/core/modules/pam/data/opt/openslx/scripts/pam_script_auth @@ -152,7 +152,7 @@ rmdir "${COMMON_SHARE_MOUNT_POINT}" 2> /dev/null if [ -d "/opt/openslx/scripts/pam_script_auth.d" ]; then for HOOK in $(ls "/opt/openslx/scripts/pam_script_auth.d"); do # source it, in case of failure do nothing since these scripts are non-critical - . "/opt/openslx/scripts/pam_script_auth.d/$HOOK" || slxlog "pam-source-hooks" "Could not source '$HOOK'." + ( . "/opt/openslx/scripts/pam_script_auth.d/$HOOK" ) || slxlog "pam-source-hooks" "Could not source '$HOOK'." done fi -- cgit v1.2.3-55-g7522