Chdir and Netcam-wget Patches
Posted by
KennethLavrsen based on emails from
ChristopheGRENIER
Introduction
Two patches from mailing list
chdir
Please a little patch that change the working directory to / in daemon mode. This way you don't have to kill motion to umount the partition from where you start it.
--- motion.org.c 2005-03-26 20:12:34.000000000 +0100
+++ motion.c 2005-05-04 14:49:14.000000000 +0200
@@ -1080,6 +1080,8 @@
exit(0);
}
+ chdir("/");
+
signal(SIGQUIT, sig_handler);
#ifdef __freebsd__
Implemented in Motion sources!
netcam-wget
header_get() doesn't always in add a \0 string terminator.
Christophe posted the attached little patch to solve this problem.
Change History of Patch
Discussion and Comments
Both are included in the main sources and will be in the 3.2.1 release.
--
KennethLavrsen - 21 May 2005
would 'target_dir' be a better place?
--
EvilPete - 08 Jun 2005