ports/openssh: Add missing patches

I just noticed I had some uncommited patches that are required for the
compilation. Also remove the ifaddrs.h fixup as we now support those!
This commit is contained in:
2026-07-05 00:21:28 +03:00
parent 15f6158cea
commit a863b2ca13
4 changed files with 62 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
diff -ruN openssh-10.2p1/session.c openssh-10.2p1-banan_os/session.c
--- openssh-10.2p1/session.c 2025-10-10 05:38:31.000000000 +0300
+++ openssh-10.2p1-banan_os/session.c 2025-11-10 00:25:55.532121660 +0200
@@ -1001,11 +1001,13 @@
# endif /* HAVE_CYGWIN */
#endif /* HAVE_LOGIN_CAP */
+#ifdef _PATH_MAILDIR
if (!options.use_pam) {
snprintf(buf, sizeof buf, "%.200s/%.50s",
_PATH_MAILDIR, pw->pw_name);
child_set_env(&env, &envsize, "MAIL", buf);
}
+#endif
/* Normal systems set SHELL by default. */
child_set_env(&env, &envsize, "SHELL", shell);