Bug 75332 - logrotate port to Solaris(8)
logrotate port to Solaris(8)
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: logrotate (Show other bugs)
1.0
sparc Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-07 07:46 EDT by matti aarnio
Modified: 2015-01-07 19:00 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-10-23 15:14:26 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)
fix for uninitialized variable in logrotate.c, port to Solaris 8. (10.56 KB, patch)
2002-10-07 08:21 EDT, matti aarnio
no flags Details | Diff
Pure port to Solaris8, corrected asprintf() reimplementation. (10.18 KB, patch)
2002-10-07 08:41 EDT, matti aarnio
no flags Details | Diff

  None (edit)
Description matti aarnio 2002-10-07 07:46:35 EDT
Description of Problem:
   The logrotate  behaves erratically, and can crash.


Version-Release number of selected component (if applicable):
   Rawhide source 3.6.5, ported to Solaris 8.

How Reproducible:
   Highly configuration dependent


Additional Information:
   Will attach a patch for this.
Comment 1 matti aarnio 2002-10-07 08:21:21 EDT
Created attachment 79184 [details]
fix for uninitialized variable in  logrotate.c, port to Solaris 8.
Comment 2 matti aarnio 2002-10-07 08:34:44 EDT
Attached patch is port to Solaris 8.

As Solaris 8 does not contain  asprintf() and friends, a reimplementation of
them as been necessary, but that implementation has gotten it slightly wrong,
thus it does not like to receive uninitialized target variable..

The fix is trivialish; the first realloc() must be changed to malloc() at
vasprintf.c  file.  This implementation is usable only at this application, it
isn't generic fool-proof thing.
Comment 3 matti aarnio 2002-10-07 08:41:39 EDT
Created attachment 79185 [details]
Pure port to Solaris8, corrected  asprintf() reimplementation.
Comment 4 Elliot Lee 2002-12-10 14:35:34 EST
Hmm, seems like there is a Solaris port of sorts already in CVS, I think I will release 3.6.6 
without these changes and have you send any needed patches against that.

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