]> granicus.if.org Git - cronie/commitdiff
setenv takes 3 arguments
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 6 Jun 2013 18:14:23 +0000 (20:14 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 6 Jun 2013 18:14:23 +0000 (20:14 +0200)
src/cron.c

index 08d08121d2eff65bd4b10724be3acd78dcef6f7e..6fd0c314e04e87b8551e8562ba1cdc49217cbbc9 100644 (file)
@@ -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);