summaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-02-22 14:50:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-02-22 14:50:14 +0000
commitd50cd6eee4aeb3f54c40a806175726304f6cf765 (patch)
tree306350c6dc8d79ed059163de0f8916f2efadfb74 /main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch
parent2f615791320847ce15ccdb11b6c3b4f213161062 (diff)
downloadaports-d50cd6eee4aeb3f54c40a806175726304f6cf765.tar.bz2
aports-d50cd6eee4aeb3f54c40a806175726304f6cf765.tar.xz
main/alpine-conf: fix for setup-acf
ref #530
Diffstat (limited to 'main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch')
-rw-r--r--main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch b/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch
new file mode 100644
index 000000000..3d21e503d
--- /dev/null
+++ b/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch
@@ -0,0 +1,26 @@
+From 325534f013c9b1a46d7587048f913a1984c46802 Mon Sep 17 00:00:00 2001
+From: Mika Havela <mika.havela@gmail.com>
+Date: Wed, 9 Feb 2011 10:21:15 +0100
+Subject: [PATCH] Bugfix: If hostname -f does not work, then ssl creation will break and acf won't work
+
+FQDN hostname might not be set in /etc/hosts and this could cause 'hostname -f' to fail. Even this does not happen too often, it still is a possibility. This patch prevents the problem.
+---
+ setup-acf.in | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/setup-acf.in b/setup-acf.in
+index 4f2afec..c6f621e 100644
+--- a/setup-acf.in
++++ b/setup-acf.in
+@@ -75,7 +75,7 @@ prompt = no
+
+ [ req_dn ]
+ OU=HTTPS server
+-CN=$(hostname -f)
++CN=$(hostname -f || hostname)
+ emailAddress=${EMAIL:-postmaster@example.com}
+
+ [ cert_type ]
+--
+1.7.3.5
+