Cannot compress a set of files with specific file names

Bug #2035669 reported by David Hedlund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
engrampa (Ubuntu)
New
Undecided
Unassigned

Bug Description

#### Expected behaviour
Succeed compression. tar could compress the files without any errors:
```
tar -czvf foo.tar.gz a/ b*
```

#### Actual behaviour
* An error occured while adding files to the archive

![image](https://github.com/mate-desktop/engrampa/assets/6416073/8a3f50e4-338e-414a-831b-cbc2683db05d)

#### Steps to reproduce the behaviour
I was experimenting with file names and discovered by coincidence that I could not compress the files. So I reduced the number of files as much as possible to reproduce the bug, but landed on a very long set of combination that trigger the bug. This is highly unexpected, and I don't know _WHY_ it happens!

Run this:

```
touch "b
.txt"

mkdir -p a
cd a || exit
touch a b b~ '#' '{' '|' '}' '~' '$'
```
* engrampa --add-to foo.tar a/ b*

#### MATE general version
1.26.0

#### Package version
1.26.0-1ubuntu1

#### Linux Distribution
Ubuntu MATE 23.04

#### Link to bugreport of your Distribution (requirement)

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: engrampa 1.26.0-1ubuntu1
ProcVersionSignature: Ubuntu 6.2.0-32.32-generic 6.2.16
Uname: Linux 6.2.0-32-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Thu Sep 14 13:40:13 2023
InstallationDate: Installed on 2023-07-23 (52 days ago)
InstallationMedia: Ubuntu-MATE 23.04 "Lunar Lobster" - Release amd64 (20230415)
SourcePackage: engrampa
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
David Hedlund (g-public) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.