Patch out the netrom no motd bug
This commit is contained in:
parent
27f3de0c7b
commit
535b3cdf3d
|
@ -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) {
|
|
@ -1,3 +1,4 @@
|
||||||
|
netrom-motd.patch
|
||||||
non-interactive-install.patch
|
non-interactive-install.patch
|
||||||
hardening
|
hardening
|
||||||
folder-update
|
folder-update
|
||||||
|
|
Loading…
Reference in New Issue