Преглед изворни кода

* Fixed update system bug which wasn't *running* the new binary

svn: 536
Bryan Drewery пре 22 година
родитељ
комит
f0618befe8
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 0
      doc/UPDATES
  2. 4 5
      src/misc.c

+ 1 - 0
doc/UPDATES

@@ -33,6 +33,7 @@ This is a summary of ChangeLog basically.
 30.Userfile is now sorted correctly.
 31.Fixed a segfault bug in cmd_mns_/exempt/ban/invite
 32.Fixed a small bug in the mIRC script.
+33.Fixed a bug in the update system; wasn't RUNNING the new binary.
 
 1.0.13
 1.Fixed a fatal bug in console_gotshare()

+ 4 - 5
src/misc.c

@@ -1434,11 +1434,10 @@ int updatebin (int idx, char *par, int autoi)
     system(buf);		/* run the binary, it SHOULD work from earlier tests.. */
     exit(0);
 #ifdef LEAF
-  } else {
-    if (localhub && autoi) {
-      add_hook(HOOK_SECONDLY, (Function) updatelocal);
-      return 0;
-    }
+  } else if (localhub && autoi) {
+    system(buf);
+    add_hook(HOOK_SECONDLY, (Function) updatelocal);
+    return 0;
   }
 #endif /* LEAF */
  /* this should never be reached */