Bug 240384 - RPM tags FILEUIDS FILEGIDS missing
RPM tags FILEUIDS FILEGIDS missing
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rpm (Show other bugs)
4.5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-16 18:02 EDT by John Horne
Modified: 2007-11-16 20:14 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-05-17 06:17:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Horne 2007-05-16 18:02:35 EDT
Description of problem:
The following URL from your site shows that the rpm tags FILEUIDS/FILEGIDS are
defined:

http://www.redhat.com/docs/books/max-rpm/max-rpm-html/ch-queryformat-tags.html

However, using them gives an error.

Version-Release number of selected component (if applicable):
rpm-4.3.3-22_nonptl

How reproducible:
Run this command:

  rpm -qf --queryformat '[%{FILEUIDS}:%{FILEGIDS}:%{FILENAMES}\n]' /bin/ps


Steps to Reproduce:
1. Run the above command
2.
3.
  
Actual results:
An error message is shown:

  error: incorrect format: unknown tag

Expected results:
File userids/gids should be listed for the relevant package.

Additional info:
Comment 1 Jeff Johnson 2007-05-16 23:04:48 EDT
Neither of FILEUIDS or FILEGIDS have been populated since (at least) rpm-2.4 in December, 1997.

NOTABUG
Comment 2 John Horne 2007-05-17 06:14:27 EDT
So shouldn't the rpm command show nothing for their values rather than giving an
error then? If I request the FILEMD5S for a symbolic link it shows no value,
rather than an error.
Comment 3 Paul Nasrat 2007-05-17 06:17:27 EDT
Maximum RPM is somewhat dated, as jbj says those are legacy header entries and
not populated by rpmbuild. Instead you should use:

rpm -qf --queryformat '[%{FILEUSERNAME}:%{FILEGROUPNAME}:%{FILENAMES}\n]' 

You've specified not queryable tags - rpm --querytags | grep IDS shows you that,
the error is correct. FILEMD5 is a queryable tag that may be empty.  It's a
different case.

Note You need to log in before you can comment on or make changes to this bug.