summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-12-26 13:11:34 -0800
committerCorey Berla <corey@berla.me>2022-12-26 17:04:46 -0800
commit1f1066d62555a65fb81e97322747fde51aa96047 (patch)
tree82bb9fc7e6c48332bfb744ae3ec30f0d9d65b1a0
parent66e87115e169707cd70287c155dbe9c92a3ab906 (diff)
downloadnautilus-1f1066d62555a65fb81e97322747fde51aa96047.tar.gz
file-operations: Apply existing FAT filename rules to exfat
exfat invalid characters align with our existing FAT_FORBIDDEN_CHARACTERS, so we can simply add "exfat" to make_file_name_valid_for_dest_fs() See: https://learn.microsoft.com/en-us/windows/win32/fileio/exfat-specification#table-35-invalid-filename-characters Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2059
-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 e5b3e323a..22480082e 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -4304,6 +4304,7 @@ make_file_name_valid_for_dest_fs (char *filename,
!strcmp (dest_fs_type, "ntfs") ||
/* msdos is returned for fat filesystems */
!strcmp (dest_fs_type, "msdos") ||
+ !strcmp (dest_fs_type, "exfat") ||
!strcmp (dest_fs_type, "cifs"))
{
gboolean ret;