summaryrefslogtreecommitdiff
path: root/src/file-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-27src/file-utils.c: Fix "error: implicit declaration of function ↵HEADmasterMike Gabriel1-0/+1
‘strcasecmp’ [-Werror=implicit-function-declaration]".
2024-02-01Fix double URI escapingColomban Wendling1-7/+13
2024-02-01Escapes a string for use in a URI. replace special "# and ?" characters in urizhuyaliang1-3/+9
Fix https://github.com/mate-desktop/engrampa/issues/501
2023-06-14Update to change the fallback and fix gzip issueToyeesh Sinha1-1/+1
2023-05-29Add "Extract to subdirectory" optionxmusjackson1-20/+17
This commit adds an "Extract to subdirectory" option to the extract dialog which allows the user to extract the contents of the archive to a directory with the name of the archive (without the extension.) The user will be prompted if the directory must be created. file-utils.c: Improve remove_extension_from_path Rework this function so that it correctly parses and truncates files with multiple extensions like .tar.gz file-utils.c: Improve get_file_extension Improve this function to correctly identify and return supported compressed tar file extensions
2023-04-21file-utils: Include <strings.h> for strcasecmpFlorian Weimer1-0/+1
The _XOPEN_SOURCE macro definition overrides _DEFAULT_SOURCE and disables the declaration in <string.h>. This avoids an implicit function declaration and build failures with future compilers.
2023-03-15file-utils: remove unused functionsrbuj1-219/+0
2022-01-02glib-utils: drop strcmp_null_tolerantrbuj1-1/+1
2021-12-11Use a blank line at mostrbuj1-65/+0
2021-01-07Remove cppcheck warnings about the variable scope can be reducedrbuj1-1/+1
2020-10-17Remove unused macrosPablo Barciela1-3/+0
2019-10-01Remove internal mkdtemp and define feature test macrorbuj1-4/+2
mkdtemp(): /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc 2.19 and earlier: */ _BSD_SOURCE || /* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200809L _POSIX_C_SOURCE 200809L is enabled by _XOPEN_SOURCE >= 700. Ref: http://man7.org/linux/man-pages/man7/feature_test_macros.7.html
2019-09-22Use g_list_free_full and g_slist_free_fullrbuj1-2/+1
void g_list_free_full (GList *list, GDestroyNotify free_func); void g_slist_free_full (GList *list, GDestroyNotify free_func); Convenience methods, which free all the memory used by a list, and calls free_func on every element's data.
2019-06-11Update FSF addressLaurent Napias1-1/+1
2019-04-02file-utils: avoid out of bound memory accessPablo Barciela1-1/+1
Fixes Clang static analyzer warning: file-utils.c:453:6: warning: Out of bound memory access (access exceeds upper limit of memory block) if (file_name [last_char] == G_DIR_SEPARATOR) ^~~~~~~~~~~~~~~~~~~~~
2014-11-22Added a D-BUS service to create and extract archives.infirit1-1/+1
Initial commits from FR: f998fd8e33a08d686a1071db87d21f4a83963d99 4078d1a9e5ddae3357302791432fc61d82ff37e4 58c55b06f30014326f27bdf94c406ceee0897731 Improvements and fixes from FR: D-Bus service: added GetSupportedTypes method ace4f31c586641fcf7ad1de165cd7f27b5a371c1 1399b9a84b0d4f4a5015066b0d7cec7e048d59dc From: Paolo Bacchilega <[email protected]>
2014-11-19use g_get_user_config_dir instead of using .config/mateinfirit1-0/+23
Also provide an automatic migration mechanism. Based on FR commit: 7fd220a834f16b260da8f5ddc1250c43b9dbefd8 From: Paolo Bacchilega <[email protected]>
2014-11-19don't leak memorymonsta1-3/+2
2012-11-05Port to gsettingsraveit1-2/+1
2012-10-09Fixed fsf addresses. Closes #4.Steve Zesch1-1/+1
2011-11-30many renames from file-roller to engrampaStefano Karapetsas1-1/+1
2011-11-09initialPerberos1-0/+1395