瀏覽代碼

Merge branch 'fix-crontab'

* fix-crontab:
  * Update bdlib to fix blank cron file issues
  * 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 年之前
父節點
當前提交
87d7835746
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      lib/bdlib
  2. 2 1
      src/shell.c

+ 1 - 1
lib/bdlib

@@ -1 +1 @@
-Subproject commit dadf0a5ae7b4fd92777bb4b37a34c9a8325bc0ec
+Subproject commit 645c8b1457c3bc48ec58af3216988c62903e5611

+ 2 - 1
src/shell.c

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