Commits on Source (8)
-
Ondrej Holy authored
The Coverity tool found some defects in the testing suite. Although, those defects don't cause any really issues, let's fix them to make covscan happy and the code more bullet-proof.
f735c056 -
Ondrej Holy authored
The Coverity tool found usage of uninitialized value, which was unfortunatelly introduced by the recent commit c919227c. This might lead to segfaults when compressing remote files. Let's initialize the `sparse` variable to fix this.
e1c58e6d -
Ondrej Holy authored
Currently, an empty folder is created when extracting an archive over Nautilus which contains one file with the same name as the archive. This is because gnome-autoar always creates the top-level folder, but the one file archive with the same name should be extracted directly without creating additional folders. Otherwise the `conflict` signal is emitted and Nautilus by default skips conflicting files, so only empty folder remains after extraction. This problem have not been unfortunately noticed by the `test-one-file-same-name` unit test due to differences in the `decide-destination` signal handling. Let's do not create the top-level folder at all as `g_file_make_directory_with_parents` is used later anyway. Fixes: https://gitlab.gnome.org/GNOME/gnome-autoar/-/issues/28
135053d5 -
Ondrej Holy authored
Currently, redundant path name handling happens when archive files have a common prefix and an equal destination is returned from the `decide-destination` signal. In this case, the old prefix is removed and the new one (the equal one) is added again. Let's detect this case and prevent the redundancy.
b9590ab7 -
Ondrej Holy authored
The debug output doesn't contain info when conflict happens. This makes hard to debug issues which are caused by them. Let's print one when a conflict happens to make it obvious.
9f4edea8 -
Ondrej Holy authored
By default, the conflicting files are skipped and this default behavior is also used by Nautilus and other clients. However, the `test-extract` util overwrites the files instead. Let's honor the default behavior here as well to make debugging easier.
47b643b2 -
Ondrej Holy authored87e278ef
-
Sebastien Bacher authored21df7f12