Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: file command does not identifies some compressed files #23179

Open
mast3rz3ro opened this issue Feb 15, 2025 · 0 comments
Open

[Bug]: file command does not identifies some compressed files #23179

mast3rz3ro opened this issue Feb 15, 2025 · 0 comments
Labels
bug report Something is not working properly untriaged

Comments

@mast3rz3ro
Copy link

Problem description

Hi there,

Recently, I have started encountering this error were file cannot identify or detect some compressed files or zip files were it's identifies these files as data instead of the actual type which is zip. I have sent the main source maintainer a message (silly me) but apparently he didn't respond to it probably because he is very busy. Now I'm bringing this issue here since I believe I may get some answers or replies from you.

Here's my log:

$ ls -s
total 150476
 11112 example1.zip
   292 example2.xpi
134692 example3.xapk
  4380 example4.apk
$ file *
example1.zip:  data
example2.xpi:  Zip archive data, made by v2.0, extract using at least v2.0, last modified, last modified Sun, ? 00 1980 00:00:00, uncompressed size 2118, method=deflate
example3.xapk: data
example4.apk:  Android package (APK), with gradle app-metadata.properties, with APK Signing Block
$ /system/bin/file *
example1.zip:  Zip archive data, requires at least v2.0 to extract
example2.xpi:  Zip archive data, requires at least v2.0 to extract
example3.xapk: Zip archive data, requires at least v1.0 to extract
example4.apk:  Zip archive data

As you can see the files example1.zip and example3.xapk are begin identified as data instead of identifying them as zip another note is that the file binary shipped with my system can identify the files type as expected.

I'll be waiting for your updates.

Best regards.
Zero

What steps will reproduce the bug?

Just install file and try to use it

What is the expected behavior?

Getting file identify the compressed files correctly.

System information

Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~-WzIaWKJ0Q9pn5SblrrEWA==/com.termux-EGPC9FNyf80z2R75867t6Q==/base.apk
TERMUX_APP__APK_RELEASE=GITHUB
TERMUX_APP__APP_VERSION_CODE=1020
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.1
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=14552
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.1
TERMUX__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c109,c257,c512,c768
TERMUX__SE_INFO=default:targetSdkVersion=28:complete
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c109,c257,c512,c768
TERMUX__UID=10365
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# root-repo (sources.list.d/root.list)
deb https://packages-cf.termux.dev/apt/termux-root root stable
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11 x11 main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
Updatable packages:
All packages up to date
termux-tools version:
1.44.6
Android version:
35
Kernel build information:
Linux localhost 4.14.336-perf-gbd8f1c4cdb06-dirty #2 SMP PREEMPT Tue Mar 12 13:01:34 UTC 2024 aarch64 Android
Device manufacturer:
Unknown
Device model:
Unknown
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
@mast3rz3ro mast3rz3ro added bug report Something is not working properly untriaged labels Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly untriaged
Projects
None yet
Development

No branches or pull requests

1 participant