Bug 119175

Summary: rpmbuild -ta constructs srpm with permissions 600 for spec file
Product: [Fedora] Fedora Reporter: Patrice Dumas <patpertusus>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-27 23:26:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrice Dumas 2004-03-25 23:05:11 UTC
Description of problem:

Doing a rpmbuild -ta on a package. After that running rpmlint on the 
package rpmlint complains that the spec file has permissions 0600.

The spec file in the package has permission 0644:
[pat@localhost src]$ ls -l texi2html-1.70/texi2html.spec
-rw-r--r--  1 pat pat 1652 mar 25 02:06 texi2html-1.70/texi2html.spec

I do a 
[pat@localhost src]$ rpmbuild -ta texi2html-1.70.tar.bz2

It builds fine. Then rpmlint gives:

[pat@localhost src]$ rpmlint
~/rpmbuild/SRPMS/texi2html-1.70-0.fdr.1.src.rpm
E: texi2html no-packager-tag
E: texi2html no-signature
W: texi2html strange-permission texi2html.spec 0600

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

4.3.0-0.22

How reproducible:

Always.

Steps to Reproduce:
1. do a rpmbuild -ta on a package tarball 
2. run rpmlint on the generated sepm
3.
  
Actual results:

W: texi2html strange-permission texi2html.spec 0600

Expected results:

No warning.

Additional info:

Comment 1 Jeff Johnson 2004-03-27 23:26:20 UTC
Fix your umask setting.

Comment 2 Patrice Dumas 2004-04-15 20:29:03 UTC
I may be wrong but it seems to me that my umask setting is right:
[pat@localhost pat]$ umask -S
u=rwx,g=rwx,o=rx
[pat@localhost pat]$ umask
0002