From 776ff4c9aa940428d7aa79292ca30035e5cf9cf7 Mon Sep 17 00:00:00 2001
From: Old openssh patches <pcerny@suse.com>
Date: Wed, 26 Oct 2022 09:52:03 +0200
Subject: [PATCH] openssh-7.2p2-login_options

# HG changeset patch
# Parent  e8b88c5fffbaad58a16d0db6fad99187e9189d88
# HG changeset patch
# Parent  b262fd34c8ecd55e93d457b3ca5593abce716856
# login-pam cannot handle the option terminator "--" as login from util-linux
# (this is correct behaviour considering its man-page), hence use option which
# selects the compile-time branch in the code which doesn't use the terminator
#
# bnc#833605
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index c9b63f9c..b41acd15 100644
--- a/configure.ac
+++ b/configure.ac
@@ -775,6 +775,8 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
 	use_pie=auto
 	check_for_libcrypt_later=1
 	check_for_openpty_ctty_bug=1
+	AC_DEFINE([LOGIN_NO_ENDOPT], [1],
+		[Define if your login program cannot handle end of options ("--")])
 	AC_DEFINE([PAM_TTY_KLUDGE], [1],
 		[Work around problematic Linux PAM modules handling of PAM_TTY])
 	AC_DEFINE([LOCKED_PASSWD_PREFIX], ["!"],
-- 
2.38.0

