detect hostname binary before acturally executing it
This commit is contained in:
parent
153587885f
commit
43f268830c
16
postfix.spec
16
postfix.spec
@ -23,7 +23,7 @@
|
|||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 3.7.2
|
Version: 3.7.2
|
||||||
Release: 2
|
Release: 3
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
||||||
@ -372,8 +372,12 @@ if [ ! -f %{sslkey} ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f %{sslcert} ]; then
|
if [ ! -f %{sslcert} ]; then
|
||||||
FQDN=`hostname`
|
if [ -x %{_bindir}/hostname ] ; then
|
||||||
if [ "x${FQDN}" = "x" ]; then
|
FQDN=`hostname`
|
||||||
|
if [ "x${FQDN}" = "x" ]; then
|
||||||
|
FQDN=localhost.localdomain
|
||||||
|
fi
|
||||||
|
else
|
||||||
FQDN=localhost.localdomain
|
FQDN=localhost.localdomain
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -551,6 +555,12 @@ fi
|
|||||||
%{postfix_doc_dir}/README_FILES/*
|
%{postfix_doc_dir}/README_FILES/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 30 2022 Funda Wang <fundawang@yeah.net> - 2:3.7.2-3
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:detect if hostname is executable before executing it
|
||||||
|
|
||||||
* Tue Sep 13 2022 xingwei <xingwei14@h-partners.com> - 2:3.7.2-2
|
* Tue Sep 13 2022 xingwei <xingwei14@h-partners.com> - 2:3.7.2-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user