Date: Sat, 16 Jan 2010 15:00:35 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/ifconfig regdomain.c Message-ID: <201001161500.o0GF0h74065672@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
gavin 2010-01-16 15:00:35 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sbin/ifconfig regdomain.c Log: SVN rev 202446 on 2010-01-16 15:00:35Z by gavin MFC r200587: 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, implicit) Revision Changes Path 1.7.2.2 +5 -2 src/sbin/ifconfig/regdomain.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001161500.o0GF0h74065672>