Bug 465586 - rpm --addsign resets the file mode
Summary: rpm --addsign resets the file mode
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-04 03:03 UTC by Carl Roth
Modified: 2008-10-16 17:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-16 17:06:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carl Roth 2008-10-04 03:03:48 UTC
Description of problem:

The --addsign mode for rpm doesn't honor the user's umask setting.  From what I can tell, it resets the file mode of the signed RPM to 0600 in all cases.

This is a new behavior with rpm-4.5 (Fedora 10 Beta).  The behavior doesn't occur in rpm-4.4.2 (Fedora 9).  The gnupg versions in F9 and F10-Beta are identical so for now I'm filing this bug against rpm.

Version-Release number of selected component (if applicable):

rpm-4.5.90
gnupg-1.4.9

How reproducible:

Always

Steps to Reproduce:
1. build an rpm with 'rpmbuild -bb'
2. Set the RPM file mode with 'chmod 0644'
3. sign the rpm with 'rpm --addsign'
4. observe the new file mode
  
Actual results:


Expected results:

Signing an RPM should change its file mode.

Additional info:

Comment 1 Panu Matilainen 2008-10-04 08:07:36 UTC
Ah, another side-effect of using mkstemp(). Fill fix...

Comment 2 Panu Matilainen 2008-10-04 08:21:11 UTC
..and done upstream. Rawhide will get it on next tarball update (should be within a week or so)

Comment 3 Panu Matilainen 2008-10-16 17:06:42 UTC
In rawhide now.


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