Просмотр исходного кода

* 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 лет назад
Родитель
Сommit
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);
-    }
+    } else
+      ret = 0;
   }
   return ret;
 }