Bug 1246808 - Discovered error in option parsing code in audio-entropyd
Summary: Discovered error in option parsing code in audio-entropyd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: audio-entropyd
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-26 00:39 UTC by stan
Modified: 2015-11-01 02:48 UTC (History)
1 user (show)

Fixed In Version: audio-entropyd-2.0.3-10.fc21 audio-entropyd-2.0.3-10.fc22 audio-entropyd-2.0.3-10.fc23
Clone Of:
Environment:
Last Closed: 2015-10-26 13:19:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
This is a patch that fixes this error in audio-entropyd.c (6.77 KB, patch)
2015-07-26 00:39 UTC, stan
no flags Details | Diff

Description stan 2015-07-26 00:39:21 UTC
Created attachment 1056163 [details]
This is a patch that fixes this error in audio-entropyd.c

Description of problem:
I was using the option parsing code from audio-entropyd in another program, and found that when a short option with an argument was used in the configuration file, it failed.  Turns out it is because strtoken is destructive of the line.  But it will work for long options with =, and short options without argument.

Version-Release number of selected component (if applicable):
audio-entropyd-2.0.3-9.fc23.src.rpm, all current versions.

How reproducible:
Every time if the conditions are hit.

Steps to Reproduce:
1.  Install audio-entropyd
2.  Use a short configuration in the configuration file, with an argument.
3.  

Actual results:
Option won't be set.

Expected results:
Option is set.

Additional info:

Comment 1 Fedora Update System 2015-09-30 17:57:45 UTC
audio-entropyd-2.0.3-10.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-ea9920d90d

Comment 2 Fedora Update System 2015-09-30 17:57:52 UTC
audio-entropyd-2.0.3-10.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-8ac4e874b2

Comment 3 Fedora Update System 2015-10-01 23:53:22 UTC
audio-entropyd-2.0.3-10.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update audio-entropyd'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-8ac4e874b2

Comment 4 Fedora Update System 2015-10-02 01:49:13 UTC
audio-entropyd-2.0.3-10.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update audio-entropyd'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-8ac4e874b2

Comment 5 Fedora Update System 2015-10-04 01:37:36 UTC
audio-entropyd-2.0.3-10.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update audio-entropyd'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-7c88f180f0

Comment 6 Fedora Update System 2015-10-04 02:21:21 UTC
audio-entropyd-2.0.3-10.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update audio-entropyd'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-ea9920d90d

Comment 7 Fedora Update System 2015-10-26 13:19:37 UTC
audio-entropyd-2.0.3-10.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-10-26 13:24:25 UTC
audio-entropyd-2.0.3-10.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-11-01 02:48:03 UTC
audio-entropyd-2.0.3-10.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, 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.