diff options
author | Colomban Wendling <[email protected]> | 2023-06-14 14:15:38 +0200 |
---|---|---|
committer | mouse <[email protected]> | 2023-06-15 11:31:03 +0800 |
commit | 79c9b8ee20cdf11c69dde173c5f04d51d5f8c778 (patch) | |
tree | bee237035428f367542e657bdf839cc7f1acff77 /HACKING | |
parent | 8e33e604d87e90bda3cc748bc1627c164d72a16c (diff) | |
download | engrampa-79c9b8ee20cdf11c69dde173c5f04d51d5f8c778.tar.bz2 engrampa-79c9b8ee20cdf11c69dde173c5f04d51d5f8c778.tar.xz |
Fix MIME detection logic from #490
A blooper has been made there:
* if ENABLE_MIME is set, the intention was to try, in order: magic,
content, filename; but it was made filename, content, magic (which
was the same as before the changes);
* if ENABLE_MIME is not set, the intention was to try, in order:
filename, content, magic; but it has been made magic, content, magic
(notice the duplicate, and the missing "filename").
This probably doesn't change much in the wild as magic is gonna work
most of the time, but it's especially problematic that the non-libmagic
case doesn't have the filename test.
Anyway, fix this so the code is consistent, and we retain the behavior
for the non-libmagic case, and have the new expected one for the
libmagic case.
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions