Bug 131944 - strndup usage isn't portable
Summary: strndup usage isn't portable
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-07 08:28 UTC by Anders F Björklund
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2005-01-04 18:12:45 UTC


Attachments (Terms of Use)
rpm-4.3-strndup.patch (404 bytes, patch)
2004-09-07 08:29 UTC, Anders F Björklund
no flags Details | Diff

Description Anders F Björklund 2004-09-07 08:28:08 UTC
Description of problem:
- Not every platform has the "strndup" function
  (suggesting using HAVE_STRNDUP or something ?)

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

How reproducible:
Always

Steps to Reproduce:
1. Compile RPM 4.3.x on non-Linux platforms

Actual Results:  Compile failure.

Expected Results:  Compile success.

Comment 1 Anders F Björklund 2004-09-07 08:29:09 UTC
Created attachment 103530 [details]
rpm-4.3-strndup.patch

Comment 2 Jeff Johnson 2005-01-04 17:51:08 UTC
Added to HEAD and rpm-4_4 branches, should be in rpm-4.4.1-0.6 when built.
Thanks for the patch.

Comment 3 Jeff Johnson 2005-01-04 18:12:45 UTC
Added to HEAD and rpm-4_4 branches, should be in rpm-4.4.1-0.6 when built.
Thanks for the patch.


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