-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

reopen 488562
severity 488562 minor
tags 488562 + upstream
thanks

Thanks for uploading a better fix for the RC bug #481247.

However, the non-RC bug I reported still exists: if "file -m" is used to
select an alternative source of magic patterns, and that source is a
directory, then the order in which they are applied is non-deterministic,
since it depends on the order in which readdir() lists files.

With hindsight, I should have filed #488562 as minor, since using "file -m"
like this is rare (at least if you use either your solution to #481247,
or mine, to avoid needing it during the package build). Correcting that now.

I haven't been able to reproduce this bug in a minimal way (I don't have
a filesystem that re-orders readdir() on demand :-) but here's an
illustration that it still exists in 4.24-4.

libRuby.so.5.18 is the same file used to reproduce #481247, ~/tmp/file-4.24
is the unpacked source code of the package, and ~/tmp is on an ext3 filesystem
with hashed directories.

[EMAIL PROTECTED] dpkg -s file | grep Version
Version: 4.24-4
[EMAIL PROTECTED] grep -v --no-filename '^:!' ~/tmp/file-4.24/magic/Magdir/* > 
~/tmp/concatenated-magic
[1] [EMAIL PROTECTED] file -m ~/tmp/concatenated-magic ~/tmp/libRuby.so.5.18
/home/smcv/tmp/libRuby.so.5.18: ELF 32-bit LSB shared object, Intel 80386, 
version 1 (SYSV), dynamically linked, not stripped
[2] [EMAIL PROTECTED] file -m ~/tmp/file-4.24/magic/Magdir ~/tmp/libRuby.so.5.18
/home/smcv/tmp/libRuby.so.5.18: Linux/i386 core file of '/', dynamically 
linked, not stripped
[3] [EMAIL PROTECTED] file ~/tmp/libRuby.so.5.18
/home/smcv/tmp/libRuby.so.5.18: ELF 32-bit LSB shared object, Intel 80386, 
version 1 (SYSV), dynamically linked, not stripped

Commentary:

[1] this result is correct

[2] but this result, from input that ought to be equivalent, is wrong -
    that's what this minor bug is about

[3] on the other hand, #481247 has indeed been fixed, so the package is no
    longer RC-buggy

    Simon
-----BEGIN PGP SIGNATURE-----

iD8DBQFIandEWSc8zVUw7HYRAvAEAJ9Rh4wSX2wpJ9pZGC1u3Tl/EHrEDgCgsvkL
eawPG2Gqkc7Q2UCD8BuFkbY=
=/Ttv
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to