mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
motion: temporary fix for extpipe subdir
This commit is contained in:
parent
7f6c18934c
commit
10ede33068
17
package/motion/temp-fix-for-extpipe-subdir-creation.patch
Normal file
17
package/motion/temp-fix-for-extpipe-subdir-creation.patch
Normal file
@ -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);
|
Loading…
x
Reference in New Issue
Block a user