Bug 1815984 - The net-snmp-config wrapper script fails to quote it's arguments before forwarding
Summary: The net-snmp-config wrapper script fails to quote it's arguments before forwa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: net-snmp
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Josef Ridky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-23 04:51 UTC by Magnus Fromreide
Modified: 2020-07-23 01:17 UTC (History)
3 users (show)

Fixed In Version: net-snmp-5.8-23.fc32 net-snmp-5.8-23.fc31
Clone Of:
Environment:
Last Closed: 2020-07-11 01:09:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed patch (1.44 KB, patch)
2020-05-01 06:53 UTC, Magnus Fromreide
no flags Details | Diff

Description Magnus Fromreide 2020-03-23 04:51:26 UTC
Description of problem:

The fedora packaging adds a wrapper shell script for net-snmp-config.
This wrapper tries forward it's arguments to the real net-snmp-config-ARCH script by means of calling

  net-snmp-config-ARCH $*

This is always a bug. Please change the wrapper script to call

  net-snmp-config-ARCH "$@"

How reproducible:
  Always

Steps to Reproduce:
1. echo '/**/' > /tmp/file.c
2. net-snmp-config --compile-subagent name --cflags '-I /usr/include' /tmp/file.c

Actual results:
/usr/bin/ld: /usr/include: file not recognized: Is a directory
collect2: error: ld returned 1 exit status

Expected results:
subagent program name created

Additional info:
As noted above the problem is that the quoting in the wrapper script is faulty, please change from $* to "$@".

Comment 1 Ben Cotton 2020-04-30 20:19:29 UTC
This message is a reminder that Fedora 30 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '30'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 30 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Magnus Fromreide 2020-05-01 06:53:50 UTC
Created attachment 1683589 [details]
Proposed patch

Comment 3 Fedora Update System 2020-07-07 18:54:25 UTC
FEDORA-2020-f730e1aeb1 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-f730e1aeb1

Comment 4 Fedora Update System 2020-07-07 18:54:27 UTC
FEDORA-2020-e53a8f609e has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e53a8f609e

Comment 5 Fedora Update System 2020-07-08 01:16:59 UTC
FEDORA-2020-e53a8f609e has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e53a8f609e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e53a8f609e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-07-08 01:49:20 UTC
FEDORA-2020-f730e1aeb1 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-f730e1aeb1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f730e1aeb1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2020-07-11 01:09:11 UTC
FEDORA-2020-f730e1aeb1 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2020-07-23 01:17:17 UTC
FEDORA-2020-e53a8f609e has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.


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