[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cfexecd chdir
From: |
Jason Kim |
Subject: |
cfexecd chdir |
Date: |
Wed, 28 Sep 2005 20:58:55 -0400 |
User-agent: |
KMail/1.8.1 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cfexecd chdir,
Jason Kim <=