Date: Tue, 15 Dec 2009 20:44:12 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/ifconfig regdomain.c Message-ID: <200912152044.nBFKiSRr051171@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
gavin 2009-12-15 20:44:12 UTC FreeBSD src repository Modified files: sbin/ifconfig regdomain.c Log: SVN rev 200587 on 2009-12-15 20:44:12Z by gavin ifconfig(8) is documented to take a ISO 3166-1 country code to set the regulatory domain with the "country" parameter, but will also take a full country name. The man page warns that only the ISO code is unambiguous. In reality, however, the first match on either would be accepted, leading to "DE" being interpreted as the "DEBUG" country rather than Germany, and "MO" selecting Morocco rather than the correct country, Macau. Fix this by always checking for an ISO CC match first, and only search on the full country name if that fails. PR: bin/140571 Tested by: Dirk Meyer dirk.meyer dinoex.sub.org Reviewed by: sam Approved by: ed (mentor) MFC after: 1 month Revision Changes Path 1.8 +5 -2 src/sbin/ifconfig/regdomain.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912152044.nBFKiSRr051171>