diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-03-14 09:28:00 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-03-14 09:28:00 +0000 |
commit | 806626f23f840ec1a1c03c3e8126ca154bfe3264 (patch) | |
tree | d2298ca24dacd07aef4b73918e4fd8a853823d53 /usr.sbin/kbdmap | |
parent | 7ce39dc45d5238767eeaf77c154fb70846dc6155 (diff) | |
download | FreeBSD-src-806626f23f840ec1a1c03c3e8126ca154bfe3264.zip FreeBSD-src-806626f23f840ec1a1c03c3e8126ca154bfe3264.tar.gz |
Cope with quotation marks around font names in /etc/rc.conf .
PR: 17330
Reported by: Anatoly Vorobey <mellon@pobox.com>
Diffstat (limited to 'usr.sbin/kbdmap')
-rw-r--r-- | usr.sbin/kbdmap/kbdmap.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kbdmap/kbdmap.pl b/usr.sbin/kbdmap/kbdmap.pl index 64407bb..6c63777 100644 --- a/usr.sbin/kbdmap/kbdmap.pl +++ b/usr.sbin/kbdmap/kbdmap.pl @@ -85,7 +85,7 @@ sub font_current { while(<F>) { /^#/ && next; - if (/^\s*font[0-9]+x[0-9]+\s*=\s*(\S+)/) { + if (/^\s*font[0-9]+x[0-9]+\s*=\s*\"?([^\s\"]+)\"?/) { $font_current = $1 if $1 ne "NO"; } } |