Bug 983052 - [PATCH] gogoc linux.sh template scrapes ifconfig output improperly
Summary: [PATCH] gogoc linux.sh template scrapes ifconfig output improperly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gogoc
Version: 19
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Juan Orti
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-10 11:43 UTC by "FeRD" (Frank Dana)
Modified: 2013-07-22 00:35 UTC (History)
1 user (show)

Fixed In Version: gogoc-1.2-26.fc19
Clone Of:
Environment:
Last Closed: 2013-07-22 00:35:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch for template/linux.sh to correctly scrape ifconfig output (2.20 KB, patch)
2013-07-10 11:43 UTC, "FeRD" (Frank Dana)
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 784314 0 unspecified CLOSED ifconfig output format changed 2021-02-22 00:41:40 UTC

Description "FeRD" (Frank Dana) 2013-07-10 11:43:27 UTC
Created attachment 771562 [details]
Patch for template/linux.sh to correctly scrape ifconfig output

Description of problem:
The gogoc client runs a script /etc/gogoc/template/linux.sh to configure the network upon successfully authenticating to the tunnelbroker. This script parses the output of ifconfig to determine configured interface addresses and adjust them accordingly. However, its assumptions about the format of ifconfig output are out of date, causing the script to fail before completion.

The attached patch properly scrapes the output of ifconfig, so that valid command invocations are constructed from the results.

Version-Release number of selected component (if applicable):
gogoc-1.2-25.fc19.i686

Additional info:
Note that the scraping has actually been broken since the ifconfig format changed in Fedora 17 (and this breakage predicted at the time) — see rhbz #784314. However, I suspect the ifconfig command was previously more input-tolerant, for instance accepting 'ifconfig tun del ip:v6:addr' commands without a prefix length, so the broken scraping was still "good enough". This is no longer true in some cases, and anyway it makes sense that gogoc handle the current format completely and correctly.

Comment 1 Juan Orti 2013-07-12 14:39:24 UTC
Thank you for reporting, I've checked your patch and seems correct.

Comment 2 Fedora Update System 2013-07-12 14:59:02 UTC
gogoc-1.2-26.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/gogoc-1.2-26.fc19

Comment 3 "FeRD" (Frank Dana) 2013-07-12 19:52:44 UTC
Agreed, I downloaded & installed the gogoc-1.2-26.fc19 build and everything looks good. Thanks!

Comment 4 Fedora Update System 2013-07-12 21:46:53 UTC
gogoc-1.2-26.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/gogoc-1.2-26.fc18

Comment 5 Fedora Update System 2013-07-13 01:50:03 UTC
Package gogoc-1.2-26.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gogoc-1.2-26.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12880/gogoc-1.2-26.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-07-22 00:33:18 UTC
gogoc-1.2-26.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2013-07-22 00:35:14 UTC
gogoc-1.2-26.fc19 has been pushed to the Fedora 19 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.