Bug 17103

Summary: syntax error in ifup-wireless
Product: Mageia Reporter: Yves DEMUR <yves.demur>
Component: RPM PackagesAssignee: Base system maintainers <basesystem>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: mageia, marja11, ngompa13, ouaurelien
Version: 6Keywords: PATCH
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: initscripts-9.55-13.mga5.src.rpm CVE:
Status comment:
Attachments: bug fix

Description Yves DEMUR 2015-11-07 10:25:18 CET
Description of problem:
In /etc/sysconfig/network-scripts/ifup-wireless line 183 is
        [ -n -n "$priv" ] && eval "/sbin/iwpriv $DEVICE $priv"
The double "-n " between braces is wrong. One "-n " must be deleted.

Steps to Reproduce:
1.Configure a Wireless NIC (ex : ra0)
2.Add the line
IWPRIV="set NetworkType=Infra"
at the end of the /etc/sysconfig/network-scripts/ifcfg-ra0 file
3.Launch tne command
ifup ra0 boot
and notice the error message


Reproducible: 

Steps to Reproduce:
Comment 1 Yves DEMUR 2015-11-10 19:02:23 CET
I propose to add the ${var} notation while fixing :
        [ -n "${priv}" ] && eval "/sbin/iwpriv ${DEVICE} ${priv}"
Comment 2 Samuel Verschelde 2015-11-16 11:36:29 CET
Assigning to maintainer.

Assignee: bugsquad => mageia

Comment 3 Colin Guthrie 2015-11-16 12:06:41 CET
Could you make a git formatted patch against the distro/mga branch of our initscripts fork?

http://gitweb.mageia.org/software/forks/initscripts/tree/sysconfig/network-scripts/ifup-wireless?h=distro/mga#n183

e.g. do the following:

1. git clone git://git.mageia.org/software/forks/initscripts
2. cd initscripts
3. git config user.name "Yves Demur"
4. git config user.email "youremailaddress"
5. git checkout -t origin/distro/mga
6. <make your changes>
7. git commit -am "ifup-wireless: Fix typo causing syntax error"
8. git format-patch HEAD^
9. Attach the generated patch here.

Note steps 3 & 4 may not be required if you've set this up globally already (and I may have the syntax slightly wrong too - working from memory!)
Comment 4 Yves DEMUR 2015-12-02 20:22:37 CET
Created attachment 7258 [details]
bug fix
Comment 5 Marja Van Waes 2018-04-18 09:05:26 CEST
Hi Yves,

Thank you for having taken the needed time to report this issue!

Did this bug get fixed? If so, please change its status to RESOLVED - FIXED

If it didn't, then we regret that we weren't able to fix it in Mageia 5. Mageia 5 has officially reached its End of Life on December 31st, 2017 https://blog.mageia.org/en/2017/11/07/mageia-5-eol-postponed/
It only continued to get important security updates since then, because we are waiting for a big Plasma5 update in Mageia 6, that'll fix many of the Mageia 5 => 6 upgrade issues.

If you haven't seen that this bug got fixed, then please check whether this bug still exists in Mageia 6. If it does, then please change the Version (near the top, at the left) to "6". If you know it exists in Cauldron, then change Version to Cauldron. If you see it in both Cauldron and Mageia 6, then please set Version to Cauldron and add MGA6TOO on the Whiteboard.

Thanks,
Marja

(In case this report needs to stay open for a supported release: Reassigning to the Base System maintainers, because Colin, the registered maintainer, is mostly unavailable)

CC: (none) => mageia, marja11, ngompa13
Keywords: (none) => PATCH
Assignee: mageia => basesystem

Yves DEMUR 2018-04-18 19:19:26 CEST

Version: 5 => 6

Comment 6 Aurelien Oudelet 2020-08-02 22:45:37 CEST
This message is a reminder that Mageia 6 is end of life.

Mageia stopped maintaining and issuing updates for Mageia 6. At that time this bug will be closed as OLD (EOL).

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 
Mageia version prior to Mageia 6's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we cannot 
be able to fix it before Mageia 6 was end of life.
If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

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 Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

--
Mageia Bugsquad

CC: (none) => ouaurelien
Status: NEW => RESOLVED
Resolution: (none) => FIXED