Bug 477229 - --queryformat: shorts are not numbers (cannot query file permissions)
Summary: --queryformat: shorts are not numbers (cannot query file permissions)
Keywords:
Status: CLOSED DUPLICATE of bug 471820
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-19 18:46 UTC by Patrick Monnerat
Modified: 2008-12-19 18:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-19 18:53:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Patrick Monnerat 2008-12-19 18:46:54 UTC
Description of problem:
Trying to get a package file's permissions is unsuccessful.


Version-Release number of selected component (if applicable):
rpm-4.6.0-0.rc1.8.i386

How reproducible:
Always

Steps to Reproduce:
1. Issue command "rpm -q --qf '[%{FILENAMES} %{FILEMODES:perms}\n]' rpm"
  
Actual results:
/bin/rpm (not a number)
/etc/cron.daily/rpm (not a number)
/etc/logrotate.d/rpm (not a number)
/etc/rpm (not a number)
/usr/bin/rpm2cpio (not a number)
/usr/bin/rpmdb (not a number)
 .
 .
 .

Expected results:
On each line, the file permissions instead of (not a number)

Additional info:
This seems related to the 'h' (short) data type. i.e.: %{FILEMODES:hex} and %{FILERDEVS:hex} are also displayed as (not a number)

Comment 1 Patrick Monnerat 2008-12-19 18:53:18 UTC
Seems duplicate: sorry

*** This bug has been marked as a duplicate of bug 471820 ***


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