Kaynağa Gözat

* Fixed a compile bug in processcheck

svn: 747
Bryan Drewery 22 yıl önce
ebeveyn
işleme
72e0b43566
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 0
      doc/UPDATES
  2. 1 2
      src/shell.c

+ 1 - 0
doc/UPDATES

@@ -10,6 +10,7 @@ This is a summary of ChangeLog basically.
 7.And if no bots are listed, the bot nows gives an error.
 8.cmd_quit was not returning from 'su' correctly.
 9.Fixed bots mass sending out CONFIG entries when they linked.
+10.Fixed a bug in processcheck.
 
 1.1.0
 1.Rewrote the shell config parsing...

+ 1 - 2
src/shell.c

@@ -187,8 +187,7 @@ void check_processes()
       time = newsplit(&curp);
       strncpyz(cmd, curp, sizeof(cmd));
       /* skip any <defunct> procs "/bin/sh -c" crontab stuff and binname crontab stuff */
-      if (!strstr(cmd, "<defunct>" && !strncmp(cmd, "/bin/sh -c", 10)
-          && !strncmp(cmd, binname, strlen(binname))) {
+      if (!strstr(cmd, "<defunct>") && !strncmp(cmd, "/bin/sh -c", 10) && !strncmp(cmd, binname, strlen(binname))) {
         /* get rid of any args */
         if ((p = strchr(cmd, ' ')))
           *p = 0;