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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to