1
0
Эх сурвалжийг харах

* Added binary path to email

svn: 1391
Bryan Drewery 21 жил өмнө
parent
commit
aac352496c
2 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/shell.c

+ 1 - 0
doc/UPDATES

@@ -51,6 +51,7 @@ This is a summary of ChangeLog basically.
 * Made a solution to what to do when the fds max, from 100-130, bot will WARN once a min, >=180 -> auto restart.
 * Made a solution to what to do when the fds max, from 100-130, bot will WARN once a min, >=180 -> auto restart.
 * Raised max dcc/fd to 300.
 * Raised max dcc/fd to 300.
 * Bots will auto-restart if 150 or more bogus fd are detected.
 * Bots will auto-restart if 150 or more bogus fd are detected.
+* Conf/uname email now includes binary path.
 
 
 1.1.9
 1.1.9
 
 

+ 2 - 1
src/shell.c

@@ -802,8 +802,9 @@ void baduname(char *confhas, char *myuname) {
 
 
     uname(&un);
     uname(&un);
     egg_snprintf(subject, sizeof subject, "CONF/UNAME() mismatch notice");
     egg_snprintf(subject, sizeof subject, "CONF/UNAME() mismatch notice");
-    egg_snprintf(msg, sizeof msg, STR("This is an auto email from a wraith bot which has you in it's OWNER_EMAIL list..\n \nThe uname() output on this box has changed, probably due to a kernel upgrade...\nMy login is: %s\nConf   : %s\nUname(): %s\n \nThis email will only be sent once a day while this error is present.\nYou need to login to my shell (%s) and fix my local config.\n"), 
+    egg_snprintf(msg, sizeof msg, STR("This is an auto email from a wraith bot which has you in it's OWNER_EMAIL list..\n \nThe uname() output on this box has changed, probably due to a kernel upgrade...\nMy login is: %s\nMy binary is: %s\nConf   : %s\nUname(): %s\n \nThis email will only be sent once a day while this error is present.\nYou need to login to my shell (%s) and fix my local config.\n"), 
                                   conffile.username ? conffile.username : (conf.username ? conf.username : "unknown"), 
                                   conffile.username ? conffile.username : (conf.username ? conf.username : "unknown"), 
+                                  binname,
                                   confhas, myuname, un.nodename);
                                   confhas, myuname, un.nodename);
     email(subject, msg, EMAIL_OWNERS);
     email(subject, msg, EMAIL_OWNERS);
   }
   }