let's not clutter /root
authorsapanb <sapanb@8c455092-636d-4788-adf5-e71def0336e8>
Mon, 14 Jan 2008 16:44:10 +0000 (16:44 +0000)
committersapanb <sapanb@8c455092-636d-4788-adf5-e71def0336e8>
Mon, 14 Jan 2008 16:44:10 +0000 (16:44 +0000)
git-svn-id: http://svn.planet-lab.org/svn/fprobe-ulog/trunk@7787 8c455092-636d-4788-adf5-e71def0336e8

fprobe-ulog.spec
src/fprobe-ulog.c

index 2b0b9f6..ae047d8 100644 (file)
@@ -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
index cd99842..9a7f365 100644 (file)
@@ -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);