Bug 42733 - rpm-4.0.3-26 segfaults on solaris 2.6
rpm-4.0.3-26 segfaults on solaris 2.6
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
1.0
All Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-05-29 15:56 EDT by Nathan Owen
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-05-29 15:56:53 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 Nathan Owen 2001-05-29 15:56:49 EDT
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 16:05:49 EDT
Fixed in next checkin, should be in rpm-4.0.3-0.29.

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