Browse Source

* 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 năm trước cách đây
mục cha
commit
48e5bba511
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;
 }
 }