You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug (archive creation fails when two files with the same filename but different path are passed prepended with "./" as filename arguments in linux)
#55
Open
Ashbd9 opened this issue
Sep 16, 2024
· 2 comments
Current Behaviour: ERROR:
Duplicate filename on disk:
file
file
Expected Behaviour:
The archive .7z is created and contains file subdir/file.
By the way, it works if the filename arguments are passed without the starting "./" i.e. as 7zz a .7z file subdir/file
It does not work when it is 7zz a .7z ./file ./subdir/file
Also does not work is 7zz a .7z /tmp/file /tmp/subdir/file
The text was updated successfully, but these errors were encountered:
It's feature.
7-zip removes path prefixes for absolute paths and for paths starting from ./.
7-zip doesn't remove path prefixes for relative paths without ./ prefix.
So if you want path prefixes in archive, do not use ./.
If you don't want path prefixes in archive, use ./ or absolute paths.
System: Linux
7z version: 24.08
How to reproduce:
touch file
mkdir subdir
touch subdir/file
7zz a .7z ./file ./subdir/file
Current Behaviour:
ERROR:
Duplicate filename on disk:
file
file
Expected Behaviour:
The archive .7z is created and contains file subdir/file.
By the way, it works if the filename arguments are passed without the starting "./" i.e. as
7zz a .7z file subdir/file
It does not work when it is
7zz a .7z ./file ./subdir/file
Also does not work is
7zz a .7z /tmp/file /tmp/subdir/file
The text was updated successfully, but these errors were encountered: