aonez / aonez/Keka

[BUG] bad handling of case-sensitivity

未關閉
#1,705 7 則留言 1 個 reaction 已指派 1 人 已被 @aonez 認領 在 GitHub 檢視
bsdtar bug pre-released some fixed
主要語言
PHP
星號
7.3k
分支
294
平均合併
14 天 16 小時
30 天內合併 PR
1

描述

### Configuration
- Keka version: 1.6.0
- macOS version: 11

### Describe the bug
If a tar archive has multiple files/folder with the same name, or with the same name but a different case (uppercase vs lowercase letters), then the extraction is not correct but there is no error message

### To Reproduce
1. create a tar archive with multiple files/folder with the same name or with the same letters with uppercase/lowercase variants
```
mkdir kekatest
cd kekatest
echo 1 > test
tar -cf archive.tar test
rm test
echo 2 > test
tar -rf archive.tar test
rm test
echo 3 > TEST
tar -rf archive.tar TEST
rm TEST
mkdir test
echo A > test/A
tar -rf archive.tar test
rm -r test
mkdir TEST
echo B > test/B
tar -rf archive.tar TEST
rm -r TEST

tar -tf archive.tar
```
2. extract with Keka
3. only the first file is extracted (the file `test` with the string `1`)

### Expected behavior
A warning similar to macOS's pop-up dialog box should appear
"An item named “test” already exists in this location. Do you want to replace it with the older one you’re moving?"
- Keep Both
- Stop
- Replace

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。