I've noticed that cfexecd stays in the directory it was started in even when 
in daemon mode. May or may not have caused a problem I was experiencing with 
one of my shellcommands (the directory I started it in was subsequently 
deleted). I did a bunch of stuff at the same time, so I couldn't 
isolate/verify the fix, but chdir'ing to '/' is probably a good thing anyway. 
Simple patch follows.
-JayKim

--- init.c.orig 2005-09-28 16:41:27.000000000 -0400
+++ init.c      2005-09-28 16:43:45.000000000 -0400
@@ -229,6 +229,8 @@
       if (fd > STDERR_FILENO) close(fd);
       }

+   chdir("/");
+
 #ifdef HAVE_SYSCONF
    maxfd = sysconf(_SC_OPEN_MAX);
 #else


_______________________________________________
Bug-cfengine mailing list
Bug-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-cfengine

Reply via email to