diff --git a/debian/patches/series b/debian/patches/series index 16891932..b0373865 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -10,3 +10,4 @@ debian/Stop-building-programs-we-do-not-install.patch debian/Warn-when-badname-and-variants-are-given.patch debian/configure.ac-align-exec_prefix-with-prefix.patch upstream/Accept-usr-sbin-nologin-as-an-alternate-to-sbin-nologin.patch +upstream/Add-LOGIN_ENV_SAFELIST-to-FOREIGNDEFS.patch diff --git a/debian/patches/upstream/Add-LOGIN_ENV_SAFELIST-to-FOREIGNDEFS.patch b/debian/patches/upstream/Add-LOGIN_ENV_SAFELIST-to-FOREIGNDEFS.patch new file mode 100644 index 00000000..e70b10ab --- /dev/null +++ b/debian/patches/upstream/Add-LOGIN_ENV_SAFELIST-to-FOREIGNDEFS.patch @@ -0,0 +1,24 @@ +From: Stanislav Brabec +Date: Wed, 9 Apr 2025 02:03:10 +0200 +Subject: Add LOGIN_ENV_SAFELIST to FOREIGNDEFS + +util-linux-2.41 introduced new variable: LOGIN_ENV_SAFELIST. +Add it to known login.defs variables. + +Signed-off-by: Stanislav Brabec +--- + lib/getdef.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/getdef.c b/lib/getdef.c +index e354d89..8883a29 100644 +--- a/lib/getdef.c ++++ b/lib/getdef.c +@@ -76,6 +76,7 @@ struct itemdef { + #define FOREIGNDEFS \ + {"ALWAYS_SET_PATH", NULL}, \ + {"ENV_ROOTPATH", NULL}, \ ++ {"LOGIN_ENV_SAFELIST", NULL}, \ + {"LOGIN_KEEP_USERNAME", NULL}, \ + {"LOGIN_PLAIN_PROMPT", NULL}, \ + {"MOTD_FIRSTONLY", NULL}, \