Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#13711 - [netcfg] does not work with profiles which name contains space

Attached to Project: Arch Linux
Opened by Ivan N. Veselov (dying_sphynx) - Monday, 09 March 2009, 09:59 GMT
Last edited by Dan Griffiths (Ghost1227) - Saturday, 27 February 2010, 02:59 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To James Rayner (iphitus)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

As in summary: profile names are not quoted correctly, so netcfg does not respect profiles with space in it. I'm reporting this, because I'm working on wifi-select tool, which automatically generates profiles, based on their ESSID names and sometimes ESSIDs contain spaces.

Possible fix: quote all occurences of $1 in validate_profile() function in src/network file:
http://projects.archlinux.org/?p=netcfg.git;a=blob_plain;f=src/network;hb=9f8ec61efe91504d6cad6c4b99a748ce316187f6

Additional info:
* package version(s)
2.1.2-1 and current git version as well.

Steps to reproduce:

1. create correct profile with name "test profile" in /etc/network.d
2. run "netcfg 'test profile'"
3. see a message "Profile 'test' does not exist". Expected behaviour: netcfg should connect using 'test profile' profile.
This task depends upon

Closed by  Dan Griffiths (Ghost1227)
Saturday, 27 February 2010, 02:59 GMT
Reason for closing:  Fixed
Comment by David Vilar (davvil) - Saturday, 11 April 2009, 21:39 GMT
Patch against version 2.1.3 attached. I hope I catched all the cases.
   patch (6.1 KiB)

Loading...