From 10ede33068e601d0e36522e672a8e0eead395daf Mon Sep 17 00:00:00 2001 From: Joo Aun Saw Date: Wed, 9 Aug 2017 11:36:42 +1000 Subject: [PATCH] motion: temporary fix for extpipe subdir --- .../temp-fix-for-extpipe-subdir-creation.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/motion/temp-fix-for-extpipe-subdir-creation.patch diff --git a/package/motion/temp-fix-for-extpipe-subdir-creation.patch b/package/motion/temp-fix-for-extpipe-subdir-creation.patch new file mode 100644 index 0000000000..06637cc1d6 --- /dev/null +++ b/package/motion/temp-fix-for-extpipe-subdir-creation.patch @@ -0,0 +1,17 @@ +diff --git a/event.c b/event.c +index f67214e..44d8096 100644 +--- a/event.c ++++ b/event.c +@@ -572,6 +572,12 @@ static void event_create_extpipe(struct context *cnt, + } + } + ++ /* Temporary solution for https://github.com/Motion-Project/motion/issues/360#issuecomment-320849158 ++ Always create any path specified as file name */ ++ if (create_path(cnt->extpipefilename) == -1) ++ return ; ++ /* end of fix */ ++ + mystrftime(cnt, stamp, sizeof(stamp), cnt->conf.extpipe, currenttime_tv, cnt->extpipefilename, 0); + + MOTION_LOG(NTC, TYPE_EVENTS, NO_ERRNO, "pipe: %s", stamp);