summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorignapk <automat.script@gmail.com>2020-07-12 20:30:59 +0200
committerignapk <automat.script@gmail.com>2020-07-12 21:12:41 +0200
commitf03cb9f79a2f005326834dc082dfbae4e0a4b786 (patch)
treed869a88a2804134ad6d087c0e8168ac8f4788ee9 /src
parent6d1875427b0b4d3b2513ebd165ab638ee7bab415 (diff)
downloadnautilus-f03cb9f79a2f005326834dc082dfbae4e0a4b786.tar.gz
file-operations: auto-escape filenames on native ntfs mounts
Currently when copying to NTFS filesystem files that have reserved characters in their names, the process will fail. There is already code in place to handle this situation for FAT by replacing invalid characters with underscores, so handle this situation in similar fashion for NTFS as well. Closes #1343
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-file-operations.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index da67fbf1c..4e8e0224c 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -4214,6 +4214,7 @@ make_file_name_valid_for_dest_fs (char *filename,
{
if (!strcmp (dest_fs_type, "fat") ||
!strcmp (dest_fs_type, "vfat") ||
+ !strcmp (dest_fs_type, "ntfs") ||
!strcmp (dest_fs_type, "msdos") ||
!strcmp (dest_fs_type, "msdosfs"))
{