Parcourir la source

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

svn: 874
Bryan Drewery il y a 22 ans
Parent
commit
fe8fb73bad
3 fichiers modifiés avec 5 ajouts et 1 suppressions
  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.
 22.Added config setting "chanset". Change to what flags new channels will have. 
    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.
 25.cmd_status now shows all information correctly.
 

+ 2 - 0
src/binary.c

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

+ 2 - 0
src/main.c

@@ -695,6 +695,7 @@ int main(int argc, char **argv)
 
   binname = getfullbinname(argv[0]);
 
+#ifndef CYGWIN_HACKS
   /*printf("Verifying Binary MD5 HASH\n"); */
   if (!encdata.data[1]) {
     /* 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("Verified.\n");
   */
+#endif /* !CYGWIN_HACKS */
 #ifdef HUB
   egg_snprintf(userfile, 121, "%s/.u", confdir());
 #endif /* HUB */