[nautilus] file-operations: auto-escape filenames on fuseblk mounts
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-operations: auto-escape filenames on fuseblk mounts
- Date: Mon, 13 Jul 2020 14:38:14 +0000 (UTC)
commit c028e48e589d07360c7ea8939a7b334948ca0e0c
Author: ignapk <automat script gmail com>
Date: Sun Jul 12 20:49:01 2020 +0200
file-operations: auto-escape filenames on fuseblk mounts
Currently when copying files that have reserved characters in their
names to NTFS or exFAT filesystems mounted using FUSE, the process will fail.
The fuseblk filesystem type could be of any type in theory, but in
practice is usually NTFS or exFAT, so make the assumption in pragmatic
way to solve this issue.
Closes #1343
src/nautilus-file-operations.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index 4e8e0224c..3f98caedd 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -4214,6 +4214,11 @@ make_file_name_valid_for_dest_fs (char *filename,
{
if (!strcmp (dest_fs_type, "fat") ||
!strcmp (dest_fs_type, "vfat") ||
+ /* The fuseblk filesystem type could be of any type
+ * in theory, but in practice is usually NTFS or exFAT.
+ * This assumption is a pragmatic way to solve
+ * https://gitlab.gnome.org/GNOME/nautilus/-/issues/1343 */
+ !strcmp (dest_fs_type, "fuse") ||
!strcmp (dest_fs_type, "ntfs") ||
!strcmp (dest_fs_type, "msdos") ||
!strcmp (dest_fs_type, "msdosfs"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]