From 3f21bf20c52599cc6dbe252488dc3dda36402f3c Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 30 Dec 2005 15:11:16 +0100 Subject: New option '-g'; fixed security hole CAN-2005-0071 when grabbing to file --- svdrp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'svdrp.h') diff --git a/svdrp.h b/svdrp.h index 469c47a5..1229f8ef 100644 --- a/svdrp.h +++ b/svdrp.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: svdrp.h 1.26 2005/11/27 15:26:42 kls Exp $ + * $Id: svdrp.h 1.27 2005/12/30 14:46:38 kls Exp $ */ #ifndef __SVDRP_H @@ -49,6 +49,7 @@ private: int length; char *cmdLine; time_t lastActivity; + static char *grabImageDir; void Close(bool Timeout = false); bool Send(const char *s, int length = -1); void Reply(int Code, const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); @@ -87,6 +88,7 @@ public: ~cSVDRP(); bool HasConnection(void) { return file.IsOpen(); } bool Process(void); + static void SetGrabImageDir(const char *GrabImageDir); }; #endif //__SVDRP_H -- cgit v1.2.3