From 601ea77b005d18b57a85e0701f3981edd61b7881 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sun, 18 May 2025 06:42:39 -0400 Subject: [PATCH] end-of-options --- usr/libexec/security-misc/pam-info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/libexec/security-misc/pam-info b/usr/libexec/security-misc/pam-info index 49b376c..ce420b2 100755 --- a/usr/libexec/security-misc/pam-info +++ b/usr/libexec/security-misc/pam-info @@ -80,7 +80,7 @@ if [ "$PAM_USER" = 'sysmaint' ]; then fi fi -kernel_cmdline="$(cat /proc/cmdline)" +kernel_cmdline="$(cat -- /proc/cmdline)" if [ "$PAM_USER" != 'sysmaint' ] \ && [[ "${kernel_cmdline}" =~ 'boot-role=sysmaint' ]]; then @@ -93,7 +93,7 @@ fi ## Also this should only run for login since securetty covers only login. # if [ "$PAM_USER" = "root" ]; then # if [ -f /etc/securetty ]; then -# grep_result="$(grep "^[^#]" /etc/securetty)" +# grep_result="$(grep -- "^[^#]" /etc/securetty)" # if [ "$grep_result" = "" ]; then # printf '%s\n' "\ # $0: ERROR: Root login is disabled.