From e1d02b39fa114958249c49f5c66a1d98288473fb Mon Sep 17 00:00:00 2001 From: sapanb Date: Mon, 14 Jan 2008 16:44:10 +0000 Subject: [PATCH] let's not clutter /root git-svn-id: http://svn.planet-lab.org/svn/fprobe-ulog/trunk@7787 8c455092-636d-4788-adf5-e71def0336e8 --- fprobe-ulog.spec | 1 + src/fprobe-ulog.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fprobe-ulog.spec b/fprobe-ulog.spec index 2b0b9f6..ae047d8 100644 --- a/fprobe-ulog.spec +++ b/fprobe-ulog.spec @@ -38,6 +38,7 @@ rm -rf %{buildroot} %{_mandir}/man8/fprobe-ulog.8.gz %post +mkdir -p /usr/local/fprobe chkconfig --add fprobe-ulog chkconfig fprobe-ulog on if [ "$PL_BOOTCD" != "1" ] ; then diff --git a/src/fprobe-ulog.c b/src/fprobe-ulog.c index cd99842..9a7f365 100644 --- a/src/fprobe-ulog.c +++ b/src/fprobe-ulog.c @@ -1285,7 +1285,7 @@ static int init_daemon() { 3. change the file creation permission */ setsid(); - chdir("/root"); + chdir("/usr/local/fprobe"); umask(0); return(0); -- 2.43.0