Motion - Chdir Net Cam Wget Patch
You are here: Foswiki>Motion Web>ChdirNetCamWgetPatch (08 Jun 2005, EvilPete)Edit Attach

Chdir and Netcam-wget Patches

Posted by KennethLavrsen based on emails from ChristopheGRENIER


Two patches from mailing list


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.

---        2005-03-26 20:12:34.000000000 +0100
+++ motion.c    2005-05-04 14:49:14.000000000 +0200
@@ -1080,6 +1080,8 @@

+               chdir("/");
                signal(SIGQUIT, sig_handler);

 #ifdef __freebsd__

Implemented in Motion sources!


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

  • Initial version

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

Topic revision: r4 - 08 Jun 2005, EvilPete
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.