[rhythmbox] mtp: replace slashes in filenames with underscores (bug #600549)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] mtp: replace slashes in filenames with underscores (bug #600549)
- Date: Thu, 19 Nov 2009 21:44:58 +0000 (UTC)
commit e5f0001a49d2947bad33afa19dc848e31ed52023
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Nov 20 07:44:26 2009 +1000
mtp: replace slashes in filenames with underscores (bug #600549)
plugins/mtpdevice/rb-mtp-source.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mtpdevice/rb-mtp-source.c b/plugins/mtpdevice/rb-mtp-source.c
index 12235ad..ddd8ece 100644
--- a/plugins/mtpdevice/rb-mtp-source.c
+++ b/plugins/mtpdevice/rb-mtp-source.c
@@ -961,7 +961,9 @@ prepare_encoder_sink_cb (RBEncoderFactory *factory,
extension);
g_free (extension);
+ /* ensure the filename is safe for FAT filesystems and doesn't contain slashes */
rb_sanitize_path_for_msdos_filesystem (track->filename);
+ g_strdelimit (track->filename, "/", '_');
if (rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_DATE) > 0) {
g_date_set_julian (&d, rhythmdb_entry_get_ulong (entry, RHYTHMDB_PROP_DATE));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]