[Rpm-maint] [rpm-software-management/rpm] Incorrect __progname definition (#203)

Adam notifications at github.com
Sun Apr 23 08:30:29 UTC 2017


__progname defined as
`const char *__progname;`
is not portable. For example, it causes segmentation fault on Darwin.

The correct definition should include **extern** (as in system.h)
`extern const char *__progname;`

To fix, either change the definition or remove the lines where system.h is also included.

Affected files:
lib/poptALL.c
rpm2archive.c
rpm2cpio.c
rpmbuild.c
rpmqv.c
rpmspec.c
tools/rpmdeps.c
tools/rpmgraph.c

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/203
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170423/7d773821/attachment.html>


More information about the Rpm-maint mailing list