From f8a69add274d8354d34fba747b41302f244a6e52 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Sun, 23 Oct 2022 13:19:41 +0200
Subject: [PATCH 2/3] src/Makefile: When creating symlink
 test-pam_$(PYTHON)-installed.pam, also duplicate that symlink as
 test-pam_$(PYTHON).pam (used by src/test.py).

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 522b179..09cb981 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -48,7 +48,7 @@ test-pam_$(PYTHON)-installed.pam: test-pam_python.pam.in Makefile
 	mv $@.tmp $@
 
 /etc/pam.d/test-pam_$(PYTHON)-installed.pam: test-pam_$(PYTHON)-installed.pam
-	s=$$([ $$(id -u) = 0 ] || echo sudo); $$s ln -sf $$(pwd)/test-pam_$(PYTHON)-installed.pam /etc/pam.d
+	s=$$([ $$(id -u) = 0 ] || echo sudo); $$s ln -sf $$(pwd)/test-pam_$(PYTHON)-installed.pam /etc/pam.d; $$s ln -sf test-pam_$(PYTHON)-installed.pam /etc/pam.d/test-pam_$(PYTHON).pam
 
 .PHONY: installed-test
 installed-test: ctest /etc/pam.d/test-pam_$(PYTHON)-installed.pam
-- 
2.30.2

