From b92da1822466c5ebc42bd7b9a71a03e0decd5088 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Thu, 6 Jun 2013 20:14:23 +0200 Subject: [PATCH] setenv takes 3 arguments --- src/cron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cron.c b/src/cron.c index 08d0812..6fd0c31 100644 --- a/src/cron.c +++ b/src/cron.c @@ -244,7 +244,7 @@ int main(int argc, char *argv[]) { check_spool_dir(); if (ChangePath) { - if (setenv("PATH", _PATH_DEFPATH) < 0) { + if (setenv("PATH", _PATH_DEFPATH, 1) < 0) { log_it("CRON", pid, "DEATH", "can't setenv PATH", errno); exit(1); -- 2.40.0