summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-04-11 08:24:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-04-11 08:24:04 +0200
commit1b1dc6d77569582c05de049d399591dd13a9e24a (patch)
tree99d82da05ac8151737e6ca98cade6d92a83d4c76 /recording.c
parente5971d2684322fcbd74b628286555dea33e5eec6 (diff)
downloadvdr-1b1dc6d77569582c05de049d399591dd13a9e24a.tar.gz
vdr-1b1dc6d77569582c05de049d399591dd13a9e24a.tar.bz2
Fixed handling '/' and '~' in recording file names in case DirectoryEncoding is used
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/recording.c b/recording.c
index f43ce52e..b1ca9c5a 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.91 2013/03/11 10:34:41 kls Exp $
+ * $Id: recording.c 2.91.1.1 2013/04/11 08:20:03 kls Exp $
*/
#include "recording.h"
@@ -561,6 +561,7 @@ char *ExchangeChars(char *s, bool ToFileSystem)
// characters that can be mapped to other characters:
case ' ': *p = '_'; break;
case FOLDERDELIMCHAR: *p = '/'; break;
+ case '/': *p = FOLDERDELIMCHAR; break;
// characters that have to be encoded:
default:
if (NeedsConversion(p)) {
@@ -583,6 +584,7 @@ char *ExchangeChars(char *s, bool ToFileSystem)
switch (*p) {
// mapped characters:
case '_': *p = ' '; break;
+ case FOLDERDELIMCHAR: *p = '/'; break;
case '/': *p = FOLDERDELIMCHAR; break;
// encoded characters:
case '#': {