[Rpm-maint] [rpm-software-management/rpm] 'rpm -qlv' does not correctly handle long owner and group name (#544)

Tomas Hoger notifications at github.com
Thu Sep 27 15:35:58 UTC 2018


I got an email notification about a comment that was made on this issue by @n3npq , but I can't see it here in the github webui.  Quoting his comment from the email notification:

> FWIW, rpm -qlv used exactly the same format as cpio(1) when implemented way back when.
>
> Continuing that practice of using the same format as cpio(1) preserves output compatibility.

I checked and tested cpio, and I can confirm it truncates names to 8 characters, but it always has space in between user and group name and hence does not merge them. The format string is `%-8.8s %-8.8s`:

http://git.savannah.gnu.org/cgit/cpio.git/tree/src/copyin.c?h=release_2_12#n779

I can't tell if that format has been used forever, but it's what's used in the initial import to the above upstream git form 2004.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/544#issuecomment-425139351
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180927/3b613ff5/attachment-0001.html>


More information about the Rpm-maint mailing list