[nautilus] eel-vfs-extensions: Update filename extensions
- From: Alexandru-Ionut Pandelea <alexpandelea src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel-vfs-extensions: Update filename extensions
- Date: Thu, 8 Sep 2016 18:54:33 +0000 (UTC)
commit 0b6a05851d753c48197045079cc6e43237fc0b8b
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date: Thu Sep 8 10:41:52 2016 +0300
eel-vfs-extensions: Update filename extensions
If a file had the extensions .tar.bz or .tar.xz, the function
eel_filename_get_extension_offset would identify only .bz or .xz as
an extension.
To fix this, .xz and .bz were added among the other special cases.
https://bugzilla.gnome.org/show_bug.cgi?id=771018
eel/eel-vfs-extensions.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-vfs-extensions.c b/eel/eel-vfs-extensions.c
index 9b5b24a..49e4b00 100644
--- a/eel/eel-vfs-extensions.c
+++ b/eel/eel-vfs-extensions.c
@@ -128,7 +128,9 @@ eel_filename_get_extension_offset (const char *filename)
if (strcmp (end, ".gz") == 0 ||
strcmp (end, ".bz2") == 0 ||
strcmp (end, ".sit") == 0 ||
- strcmp (end, ".Z") == 0)
+ strcmp (end, ".Z") == 0 ||
+ strcmp (end, ".bz") == 0 ||
+ strcmp (end, ".xz") == 0)
{
end2 = end - 1;
while (end2 > start &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]