Bug#1011635: Diff between {,sticky} Debian binary package fails
Mattia Rizzolo
mattia at debian.org
Thu May 26 11:17:13 BST 2022
On Wed, May 25, 2022 at 05:22:57PM +0200, David Prévot wrote:
> I noticed a difference in the file(1) output that might be a clue:
>
> $ file php-react-promise_2.*deb
> php-react-promise_2.7.0-2_all.deb: sticky Debian binary package (format 2.0), with control.tar.xz, data compression xz
> php-react-promise_2.9.0-1_all.deb: Debian binary package (format 2.0), with control.tar.xz, data compression xz
So it seems that file adds "sticky" to all files that have the sticky
bit (and not only):
https://github.com/file/file/commit/0205ccd7efb6ec1dab25d4641e42a684a2749a1c
(the recent version:
https://github.com/file/file/blob/master/src/fsmagic.c#L174)
My honest thought it that this is just distracting: the attribtes of
files are already part of stat(1) output's (also included in some cases
IIRC) and, at least for things outside of archives, it's not actually an
attribute of the file but rather of the underlying file system.
That said, changing all regex with have to prepend
'(?:(?:setuid|setgid|sticky) )?' or such feels… suboptimal :)
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
More about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20220526/75f69104/attachment.sig>
More information about the Reproducible-builds
mailing list