]> jfr.im git - solanum.git/blobdiff - ircd/restart.c
ircd/authproc.c: avoid crash on lack of any configured DNSBLs
[solanum.git] / ircd / restart.c
index f91f9293c17a8ab3b5ac9d05fc99fddc6c670f9a..4d7b72d5f1274171651a205a38d6671f02039a90 100644 (file)
@@ -32,7 +32,7 @@
 #include "ircd_signal.h"
 
 /* external var */
-extern char **myargv;
+extern char * const *myargv;
 
 void
 restart(const char *mesg)
@@ -54,7 +54,7 @@ server_reboot(void)
        int i;
        char path[PATH_MAX+1];
 
-       sendto_realops_snomask(SNO_GENERAL, L_ALL, "Restarting server...");
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Restarting server...");
 
        ilog(L_MAIN, "Restarting server...");
 
@@ -75,7 +75,7 @@ server_reboot(void)
        execv(ircd_paths[IRCD_PATH_IRCD_EXEC], (void *)myargv);
 
        /* use this if execv of SPATH fails */
-       snprintf(path, sizeof(path), "%s%cbin%circd", ConfigFileEntry.dpath, RB_PATH_SEPARATOR, RB_PATH_SEPARATOR);
+       snprintf(path, sizeof(path), "%s/bin/ircd", ConfigFileEntry.dpath);
 
        execv(path, (void *)myargv);
        exit(-1);