Преглед на файлове

* Fix regression in autocron: Wasn't working on FreeBSD due to 'crontab -l' not returning anything on STDOUT with an empty crontab

Bryan Drewery преди 16 години
родител
ревизия
48e5bba511
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/shell.c

+ 2 - 1
src/shell.c

@@ -783,7 +783,8 @@ int crontab_exists(bd::Stream* crontab, bool excludeSelf) {
       }
       }
 
 
       free(out);
       free(out);
-    }
+    } else
+      ret = 0;
   }
   }
   return ret;
   return ret;
 }
 }