Преглед изворни кода

* 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);
-    }
+    } else
+      ret = 0;
   }
   return ret;
 }