From e06b173a1be8c0e3e47a9c4bab2d94fe88d422e0 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 24 Nov 2022 06:24:14 -0500 Subject: [PATCH] debugging --- usr/bin/faillock-user | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usr/bin/faillock-user b/usr/bin/faillock-user index fd491f1..083615c 100755 --- a/usr/bin/faillock-user +++ b/usr/bin/faillock-user @@ -3,6 +3,16 @@ ## Copyright (C) 2022 - 2022 ENCRYPTED SUPPORT LP ## See the file COPYING for copying conditions. +true "$0: START PHASE 1" + +if test -f /etc/pam-info-debug || test -f /usr/local/etc/pam-info-debug ; then + set -x + exec 5>&1 1>> ~/pam-info-debug.txt + exec 6>&2 2>> ~/pam-info-debug.txt +fi + +true "$0: START PHASE 2" + if ! command -v "/usr/sbin/faillock" &>/dev/null; then true "$0: ERROR: The faillock program is unavailable, exiting." exit 2