Motion - Chdir Net Cam Wget Patch

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

  • 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-2017 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.