Răsfoiți Sursa

* Default binary name is now what you name it, or "wraith" if left in "wraith.OS-ver" format.

svn: 2230
Bryan Drewery 21 ani în urmă
părinte
comite
237aa3fc89
2 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/conf.c

+ 1 - 0
doc/UPDATES

@@ -25,6 +25,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed CPU lockup for bots which did not have NODENAME/USERNAME/SYSNAME entries filled out.
 * Slightly changed/added a comment in -C for uname.
 * Fixed binary config stating there was no change with -C under certain conditions.
+* Default binary name is now what you name it, or "wraith" if left in "wraith.OS-ver" format.
 
 1.2.3
 

+ 4 - 1
src/conf.c

@@ -351,7 +351,10 @@ init_conf()
   char *p = strrchr(binname, '/');
 
   p++;
-  conf.binname = strdup(p);
+  if (strncmp(p, "wraith.", 7))
+    conf.binname = strdup(p);
+  else
+    conf.binname = strdup("wraith");
 
   conf.portmin = 0;
   conf.portmax = 0;