summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-15 15:46:07 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-15 15:46:07 +0100
commita81e3699d13527ac8651969ddf0e0e411915d313 (patch)
treecd5655fa13522d41c545acb0ed06d8ac9269be3a /svdrp.c
parent9495aa9923fed16aeb6f49c69ccd249b9e17dba7 (diff)
downloadvdr-a81e3699d13527ac8651969ddf0e0e411915d313.tar.gz
vdr-a81e3699d13527ac8651969ddf0e0e411915d313.tar.bz2
Limiting the length of the recording name in timers in case VDR is run with --vfat (replaces the previous change to svdrp.c)
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/svdrp.c b/svdrp.c
index c6e64f87..38e51942 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.107 2008/02/15 14:48:59 kls Exp $
+ * $Id: svdrp.c 1.108 2008/02/15 15:10:49 kls Exp $
*/
#include "svdrp.h"
@@ -40,8 +40,6 @@
#include "tools.h"
#include "videodir.h"
-#define VFAT_MAX_FILENAME 40 // same as MAX_SUBTITLE_LENGTH in recording.c
-
// --- cSocket ---------------------------------------------------------------
cSocket::cSocket(int Port, int Queue)
@@ -1177,16 +1175,6 @@ void cSVDRP::CmdMODT(const char *Option)
Reply(501, "Error in timer settings");
return;
}
- else if (VfatFileSystem) {
- const char *FileName = timer->File();
- const char *p = strrchr(FileName, '~');
- if (!p)
- p = FileName;
- if (strlen(p) > VFAT_MAX_FILENAME) {
- Reply(501, "File name too long for VFAT file system");
- return;
- }
- }
*timer = t;
Timers.SetModified();
isyslog("timer %s modified (%s)", *timer->ToDescr(), timer->HasFlags(tfActive) ? "active" : "inactive");
@@ -1293,17 +1281,6 @@ void cSVDRP::CmdNEWT(const char *Option)
if (*Option) {
cTimer *timer = new cTimer;
if (timer->Parse(Option)) {
- if (VfatFileSystem) {
- const char *FileName = timer->File();
- const char *p = strrchr(FileName, '~');
- if (!p)
- p = FileName;
- if (strlen(p) > VFAT_MAX_FILENAME) {
- Reply(501, "File name too long for VFAT file system");
- delete timer;
- return;
- }
- }
cTimer *t = Timers.GetTimer(timer);
if (!t) {
Timers.Add(timer);