Просмотр исходного кода

* Reverted as all nets must already be 1.2.3 to handle the changed buffer sizes

svn: 1896
Bryan Drewery 21 лет назад
Родитель
Сommit
f22ca33858
2 измененных файлов с 16 добавлено и 9 удалено
  1. 4 2
      doc/UPDATES
  2. 12 7
      src/settings.h

+ 4 - 2
doc/UPDATES

@@ -2,6 +2,10 @@ This is a summary of ChangeLog basically.
 
 
 Lines prefixxed with '-' were disabled before release and are not finishsed.
 Lines prefixxed with '-' were disabled before release and are not finishsed.
 
 
+1.2.4 (Planned updates)
+* Increased buffer size in -C for binname/binpath/homedir
+* Added tempdir option in config -C
+
 1.2.3
 1.2.3
 * HUB/LEAF binaries have been combined into 1 binary named 'wraith'
 * HUB/LEAF binaries have been combined into 1 binary named 'wraith'
 * Read in '.resolv.conf' before '/etc/resolv.conf'
 * Read in '.resolv.conf' before '/etc/resolv.conf'
@@ -32,8 +36,6 @@ Lines prefixxed with '-' were disabled before release and are not finishsed.
   (Fixes old bots/uname/data showing up in conf after bot is updated)
   (Fixes old bots/uname/data showing up in conf after bot is updated)
 * Fixed some bad passes being generated/set beginning with -/+
 * Fixed some bad passes being generated/set beginning with -/+
 * Fixed binary exiting with ERR_NOBOTS under conditions that it shouldn't. (updating)
 * Fixed binary exiting with ERR_NOBOTS under conditions that it shouldn't. (updating)
-* Increased buffer size in -C for binname/binpath/homedir
-* Added tempdir option in config -C
 
 
 1.2.2
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 12 - 7
src/settings.h

@@ -19,7 +19,7 @@ typedef struct settings_struct {
   char dcc_prefix[25];
   char dcc_prefix[25];
   /* -- DYNAMIC -- */
   /* -- DYNAMIC -- */
  
  
-  char tempdir[1389];
+//  char tempdir[1389];
   char bots[1389];
   char bots[1389];
   char uid[25];
   char uid[25];
   char autouname[25];        /* should we just auto update any changed in uname output? */
   char autouname[25];        /* should we just auto update any changed in uname output? */
@@ -28,20 +28,25 @@ typedef struct settings_struct {
   char watcher[25];          /* spawn a watcher pid to block ptrace? */
   char watcher[25];          /* spawn a watcher pid to block ptrace? */
   char uname[489];
   char uname[489];
   char username[45];       /* shell username */
   char username[45];       /* shell username */
-  char homedir[1389];        /* homedir */
-  char binpath[1389];        /* path to binary, ie: ~/ */
-  char binname[121];        /* binary name, ie: .sshrc */
+//  char homedir[1389];        /* homedir */
+//  char binpath[1389];        /* path to binary, ie: ~/ */
+  char homedir[489];        /* homedir */
+  char binpath[489];        /* path to binary, ie: ~/ */
+//  char binname[121];        /* binary name, ie: .sshrc */
+  char binname[45];        /* binary name, ie: .sshrc */
   char portmin[25];       /* for hubs, the reserved port range for incoming connections */
   char portmin[25];       /* for hubs, the reserved port range for incoming connections */
   char portmax[25];       /* for hubs, the reserved port range for incoming connections */
   char portmax[25];       /* for hubs, the reserved port range for incoming connections */
   /* -- PADDING -- */
   /* -- PADDING -- */
-  char padding[3];
+//  char padding[3];
+  char padding[4];
 } settings_t;
 } settings_t;
 
 
 #define SIZE_PACK sizeof(settings.hash) + sizeof(settings.packname) + sizeof(settings.shellhash) + \
 #define SIZE_PACK sizeof(settings.hash) + sizeof(settings.packname) + sizeof(settings.shellhash) + \
-sizeof(settings.bdhash) + sizeof(settings.owners) + sizeof(settings.hubs) + sizeof(settings.owneremail) + \
+#define SIZE_PACK sizeof(settings.hash) + sizeof(settings.packname) + sizeof(settings.shellhash) + \
 sizeof(settings.salt1) + sizeof(settings.salt2) + sizeof(settings.dcc_prefix)
 sizeof(settings.salt1) + sizeof(settings.salt2) + sizeof(settings.dcc_prefix)
 
 
-#define SIZE_CONF sizeof(settings.tempdir) + sizeof(settings.bots) + sizeof(settings.uid) + sizeof(settings.autouname) + \
+//#define SIZE_CONF sizeof(settings.tempdir) + sizeof(settings.bots) + sizeof(settings.uid) + sizeof(settings.autouname) + \
+#define SIZE_CONF sizeof(settings.bots) + sizeof(settings.uid) + sizeof(settings.autouname) + \
 sizeof(settings.pscloak) + sizeof(settings.autocron) + sizeof(settings.watcher) + sizeof(settings.uname) + \
 sizeof(settings.pscloak) + sizeof(settings.autocron) + sizeof(settings.watcher) + sizeof(settings.uname) + \
 sizeof(settings.username) + sizeof(settings.homedir) + sizeof(settings.binpath) + sizeof(settings.binname) + \
 sizeof(settings.username) + sizeof(settings.homedir) + sizeof(settings.binpath) + sizeof(settings.binname) + \
 sizeof(settings.portmin) + sizeof(settings.portmin)
 sizeof(settings.portmin) + sizeof(settings.portmin)