[Bug 236079] [PATCH] local-unbound-setup cannot read resolv.conf with tabs as a separator

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 27 11:15:42 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236079

            Bug ID: 236079
           Summary: [PATCH] local-unbound-setup cannot read resolv.conf
                    with tabs as a separator
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: 000.fbsd at quip.cz

Created attachment 202406
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=202406&action=edit
replace tabs by space

In resolv.conf keyword "nameserver" and its value (IP address) can be separated
by spaces or tabs but local-unbound-setup accepts only spaces resulting in:

No forwarders found in resolv.conf, using existing forward.conf.

I am not so good in shellscripting so I fixed it by this line

local line=$(echo $line | sed -E 's/    / /g')

I don't know how to write it as parameter expansion instead of calling sed in a
subshell.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list