Patch out the netrom no motd bug

This commit is contained in:
Dave Hibberd 2023-07-27 01:02:25 +01:00
parent 27f3de0c7b
commit 535b3cdf3d
2 changed files with 18 additions and 0 deletions

17
debian/patches/netrom-motd.patch vendored Normal file
View File

@ -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) {

View File

@ -1,3 +1,4 @@
netrom-motd.patch
non-interactive-install.patch non-interactive-install.patch
hardening hardening
folder-update folder-update