Mercurial > crates > nonstick
diff testharness/install-test-harness.sh @ 169:77470e45e397
Set up stuff to work the way Sun expects it to.
This sets up PAM to use pam_authtok_get.so on Sun machines.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 15 Jul 2025 01:32:21 -0400 |
parents | c4b1e280463c |
children |
line wrap: on
line diff
--- a/testharness/install-test-harness.sh Tue Jul 15 00:56:01 2025 -0400 +++ b/testharness/install-test-harness.sh Tue Jul 15 01:32:21 2025 -0400 @@ -8,7 +8,11 @@ SRC="$1" DST="$2" LIB="$3" - sed "s#pam_testharness\.so#$LIB#" <"$SRC" >"$DST" + SUN_PATCH="" + if [ "$(uname -s)" = "SunOS" ]; then + SUN_PATCH="s/^#Sun#//" + fi + sed -e "s#pam_testharness\.so#$LIB#" -e "$SUN_PATCH" <"$SRC" >"$DST" } setup_pam_conf() {