From 535b3cdf3d013a6c611e42362ce78edfc14ca655 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Thu, 27 Jul 2023 01:02:25 +0100 Subject: [PATCH] Patch out the netrom no motd bug --- debian/patches/netrom-motd.patch | 17 +++++++++++++++++ debian/patches/series | 1 + 2 files changed, 18 insertions(+) create mode 100644 debian/patches/netrom-motd.patch diff --git a/debian/patches/netrom-motd.patch b/debian/patches/netrom-motd.patch new file mode 100644 index 0000000..09d12cc --- /dev/null +++ b/debian/patches/netrom-motd.patch @@ -0,0 +1,17 @@ +--- a/node.c ++++ b/node.c +@@ -302,6 +302,14 @@ + #ifdef HAVEMOTD + if (User.ul_type == AF_NETROM) { + /* axio_printf(NodeIo, "%s} Welcome.\n", NodeId); */ ++ if (check_perms(PERM_ANSI, 0L) != -1) { ++ node_msg("\e[01;34m[\e[01;37m%s\e[01;34m]\e[0m - Welcome to %s", VERSION, FlexId); ++ } else ++ node_msg("%s - Welcome to %s", VERSION, FlexId); ++ if ((fp = fopen(HAVEMOTD, "r")) != NULL) { ++ while (fgets(buf, 256, fp) != NULL) axio_puts(buf,NodeIo); ++ axio_puts ("\n",NodeIo); ++ } + } else + if ((User.ul_type == AF_INET) || (User.ul_type == AF_INET6)) { + if (check_perms(PERM_ANSI, 0L) != -1) { diff --git a/debian/patches/series b/debian/patches/series index 5cb9a02..95dbf75 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +netrom-motd.patch non-interactive-install.patch hardening folder-update