2020-05-20 05:42:54 +00:00
|
|
|
--- b/lbdb_lib.sh.in 2019-01-07 19:30:29.000000000 +0100
|
|
|
|
|
+++ a/lbdb_lib.sh.in 2020-05-06 10:13:38.987327900 +0200
|
|
|
|
|
@@ -56,11 +56,8 @@
|
2007-05-17 09:42:53 +00:00
|
|
|
else
|
|
|
|
|
hn=""
|
|
|
|
|
if test -r /etc/resolv.conf ; then
|
2020-05-20 05:42:54 +00:00
|
|
|
- hn="$(sed -n -e 's/^[ ]*domain[ ]\{1,\}\([^ ]*\)/\1/p' /etc/resolv.conf)"
|
2007-05-17 09:42:53 +00:00
|
|
|
- if test "x$hn" = "x" ; then
|
2020-05-20 05:42:54 +00:00
|
|
|
- hn="$(sed -n -e 's/^[ ]*search[ ]\{1,\}\([^ ]*\)/\1/p' /etc/resolv.conf)"
|
2007-05-17 09:42:53 +00:00
|
|
|
- fi
|
2020-05-20 05:42:54 +00:00
|
|
|
- fi
|
|
|
|
|
+ hn=`awk '/^#/{next}($1 == "search" || $1 == "domain" ) && $2 != "" {print $2;exit}' < /etc/resolv.conf`
|
|
|
|
|
+ fi
|
2007-05-17 09:42:53 +00:00
|
|
|
if test "x$hn" = "x" ; then
|
2020-05-20 05:42:54 +00:00
|
|
|
hn=$(lbdb_hn_sendmail)
|
2007-05-17 09:42:53 +00:00
|
|
|
if test "x$hn" = "xNONE" ; then
|