Bug 42733

Summary: rpm-4.0.3-26 segfaults on solaris 2.6
Product: [Retired] Red Hat Raw Hide Reporter: Nathan Owen <owenna>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-29 19:56:53 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 Nathan Owen 2001-05-29 19:56:49 UTC
Description of Problem:
rpm segfaults upon being run on solaris. This is because the uname()
syscall on solaris returns non-negative on success, whereas on linux it
returns 0 on success.

changing line 982 in lib/rpmrc.c
from 
	if (rc) return;
to
	if (rc < 0) return;

appears to fix this

How Reproducible:


Steps to Reproduce:
1. rpm
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 Jeff Johnson 2001-05-29 20:05:49 UTC
Fixed in next checkin, should be in rpm-4.0.3-0.29.