freebsd-skq/sbin
gavin 9e26e7888c 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
2009-12-15 20:44:12 +00:00
..
adjkerntz Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
atacontrol MFp4: 2009-12-06 00:10:13 +00:00
atm Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
badsect Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
bsdlabel Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
camcontrol MFp4: 2009-11-26 08:49:46 +00:00
ccdconfig Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
clri Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
comcontrol Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
conscontrol Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ddb Ensure 'kvm' is always initialized. If "-M" was not specified and the 2009-11-02 20:18:50 +00:00
devd o Spell. Sort .Xrs. 2009-03-08 18:02:30 +00:00
devfs Support for filtering on major device number was removed in rev. 1.7 or 2008-06-27 09:09:50 +00:00
dhclient Make dhclient use bootpc (68) as the source port for unicast DHCPREQUEST 2009-10-21 23:50:35 +00:00
dmesg Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
dump Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
dumpfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
dumpon Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
fdisk - Back out the previous change in order to maintain compatibility. 2009-06-17 06:41:10 +00:00
fdisk_pc98 Use the common PC98_SID_ACTIVE define instead of a local define. 2009-03-19 12:31:59 +00:00
ffsinfo Don't coredump when executed with -o. 2008-01-29 00:20:00 +00:00
fsck Fix minor resource leak in a function which was introduced by changing an 2009-11-20 15:27:00 +00:00
fsck_ffs Correct comment. 2009-06-03 09:23:31 +00:00
fsck_msdosfs fsck_msdosfs: accept no-op -C option for compatibilty with fsck 2009-06-10 19:02:54 +00:00
fsdb Update after function renames. 2006-10-31 22:07:29 +00:00
fsirand
gbde Remove temporary files when there are no longer needed. 2007-04-06 11:16:11 +00:00
geom The default balance algorithm has changed from "split" to 2009-12-09 11:00:00 +00:00
ggate Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
growfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
gvinum Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ifconfig ifconfig(8) is documented to take a ISO 3166-1 country code to set the 2009-12-15 20:44:12 +00:00
init Let init(8) and reboot(8) use utmpx to log wtmp entries. 2009-12-05 20:26:55 +00:00
ipf Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ipfw implement a new match option, 2009-12-15 09:46:27 +00:00
iscontrol Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
kldconfig Fix malloc size (visible on amd64, with "kldconfig -r"). 2005-11-07 19:22:20 +00:00
kldload Add a note about the implication of secure level setting against kldload, 2009-06-23 23:56:56 +00:00
kldstat Only show the pathname in verbose output as intended in the last commit (r172862). 2008-12-22 19:52:21 +00:00
kldunload Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ldconfig Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mca Markup nit. 2006-09-30 11:12:36 +00:00
md5 Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mdconfig Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mdmfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mknod Refine r198714, it's not as easy as just leaving the major number zero. 2009-11-01 18:25:11 +00:00
mksnap_ffs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount Add links to zfs(8) and zpool(8) to mount(8) manual page. 2009-11-11 12:55:58 +00:00
mount_autofs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_cd9660 Fix minor memory leak in a function. 2009-11-20 15:28:38 +00:00
mount_ext2fs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_hpfs
mount_msdosfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_nfs Fix parsing of mount options specified with -o in case an option with 2009-10-26 14:57:33 +00:00
mount_ntfs Tone down warning about the quality of the NTFS VFS module. It appears that 2009-01-20 02:08:21 +00:00
mount_nullfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_reiserfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_std Reduce the number of errors under WARNS=6 2006-09-13 04:50:44 +00:00
mount_udf style.Makefile(5): Remove -Wall from CFLAGS. 2006-07-17 20:53:25 +00:00
mount_unionfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
natd Check rule numbers against maximum value to avoid rules cleanup due 2008-09-06 17:26:52 +00:00
newfs Slightly improve gjournal documentation. 2009-04-29 10:02:50 +00:00
newfs_msdos Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
nfsiod Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
nos-tun
pfctl Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
pflogd Let pflogd's Makefile just use WARNS instead of changing CFLAGS. 2009-04-23 09:11:37 +00:00
ping - improve readability 2009-01-11 22:36:45 +00:00
ping6 Implement -R support, similar to ping(8)'s -A. 2008-08-27 15:01:23 +00:00
quotacheck Drag this code kicking and screaming into the twenty-first century. 2008-07-02 15:51:59 +00:00
rcorder Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
reboot Let init(8) and reboot(8) use utmpx to log wtmp entries. 2009-12-05 20:26:55 +00:00
recoverdisk Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
restore Make 'struct acl' larger, as required to support NFSv4 ACLs. Provide 2009-05-22 15:56:43 +00:00
route remove stale references to RTF_CLONING and RTF_LLINFO 2009-09-04 18:52:26 +00:00
routed Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
rtsol Add eye candy while I'm here: a blank line between 2006-07-27 18:28:14 +00:00
savecore Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
sconfig Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
setkey o Add missed dot. 2008-09-29 05:31:27 +00:00
shutdown Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
spppcontrol Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
sunlabel
swapon Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
sysctl Just use devname(3) to print device names. 2009-11-03 11:41:21 +00:00
tunefs The tunefs utility does not work on active filesystems. 2009-10-21 10:15:26 +00:00
umount Be more precise how to get fsids - 'mount -v' doesn't show fsids unless is run 2009-08-17 07:38:47 +00:00
Makefile Remove the unmaintained University of Michigan NFSv4 client from 8.x 2009-05-22 12:35:12 +00:00
Makefile.inc Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00