Explorar o código

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

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
48e5bba511
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
 }