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

* Don't bother with checksums on CYGWIN, it's too lame..

svn: 874
Bryan Drewery 22 лет назад
Родитель
Сommit
fe8fb73bad
3 измененных файлов с 5 добавлено и 1 удалено
  1. 1 1
      doc/UPDATES
  2. 2 0
      src/binary.c
  3. 2 0
      src/main.c

+ 1 - 1
doc/UPDATES

@@ -24,7 +24,7 @@ This is a summary of ChangeLog basically.
 21.Fixed a bug with a full harddrive.
 21.Fixed a bug with a full harddrive.
 22.Added config setting "chanset". Change to what flags new channels will have. 
 22.Added config setting "chanset". Change to what flags new channels will have. 
    Original default list will apply for options you leave out.
    Original default list will apply for options you leave out.
-23.Bot now saves/checks it's binary md5 checksum.
+23.Bot now saves/checks it's binary md5 checksum. (Except on CYGWIN)
 24.Removed the majority of the garblestrings. Was slowing the bot down.
 24.Removed the majority of the garblestrings. Was slowing the bot down.
 25.cmd_status now shows all information correctly.
 25.cmd_status now shows all information correctly.
 
 

+ 2 - 0
src/binary.c

@@ -13,6 +13,7 @@
 #include "salt.h"
 #include "salt.h"
 #include "misc_file.h"
 #include "misc_file.h"
 
 
+#ifndef CYGWIN_HACKS
 encdata_t encdata = {
 encdata_t encdata = {
   "AAAAAAAAAAAAAAAA",
   "AAAAAAAAAAAAAAAA",
   ""
   ""
@@ -95,3 +96,4 @@ bin_md5(const char *fname, int todo)
   free(buf);
   free(buf);
   return hash;
   return hash;
 }
 }
+#endif /* !CYGWIN_HACKS */

+ 2 - 0
src/main.c

@@ -695,6 +695,7 @@ int main(int argc, char **argv)
 
 
   binname = getfullbinname(argv[0]);
   binname = getfullbinname(argv[0]);
 
 
+#ifndef CYGWIN_HACKS
   /*printf("Verifying Binary MD5 HASH\n"); */
   /*printf("Verifying Binary MD5 HASH\n"); */
   if (!encdata.data[1]) {
   if (!encdata.data[1]) {
     /* printf("Generated Hash (First time ran)\n"); */
     /* printf("Generated Hash (First time ran)\n"); */
@@ -715,6 +716,7 @@ int main(int argc, char **argv)
   printf("Internal HASH: %s\nShould be: %s\n", encdata.data, bin_md5(binname, GET_MD5));
   printf("Internal HASH: %s\nShould be: %s\n", encdata.data, bin_md5(binname, GET_MD5));
   printf("Verified.\n");
   printf("Verified.\n");
   */
   */
+#endif /* !CYGWIN_HACKS */
 #ifdef HUB
 #ifdef HUB
   egg_snprintf(userfile, 121, "%s/.u", confdir());
   egg_snprintf(userfile, 121, "%s/.u", confdir());
 #endif /* HUB */
 #endif /* HUB */