diff --git a/ypserv-2.26-emptydomain.patch b/ypserv-2.26-emptydomain.patch new file mode 100644 index 0000000..aa340c2 --- /dev/null +++ b/ypserv-2.26-emptydomain.patch @@ -0,0 +1,12 @@ +diff -up ypserv-2.26/scripts/ypinit.in.emptydomain ypserv-2.26/scripts/ypinit.in +--- ypserv-2.26/scripts/ypinit.in.emptydomain 2011-11-24 09:12:31.267702768 +0100 ++++ ypserv-2.26/scripts/ypinit.in 2011-11-24 09:13:09.881700121 +0100 +@@ -156,7 +156,7 @@ then + exit 1 + fi + +-if [ -z "$DOMAIN" ] ++if [ "${DOMAIN}x" = "x" ] || [ "${DOMAIN}" = "(none)" ] + then + echo "The local host's domain name hasn't been set. Please set it." + exit 1 diff --git a/ypserv.spec b/ypserv.spec index 5464d82..15e71b8 100644 --- a/ypserv.spec +++ b/ypserv.spec @@ -30,6 +30,7 @@ Patch10: ypserv-2.25-portmanfix.patch Patch11: ypserv-2.26-request.patch Patch12: ypserv-2.26-shadow.patch Patch13: ypserv-2.26-errmsg.patch +Patch14: ypserv-2.26-emptydomain.patch BuildRequires: gdbm-devel BuildRequires: systemd-units @@ -65,6 +66,7 @@ machines. %patch11 -p1 -b .request %patch12 -p1 -b .shadow %patch13 -p1 -b .errmsg +%patch14 -p1 -b .emptydomain %build cp etc/README etc/README.etc