X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by lists.alpinelinux.org (Postfix) with ESMTP id 1E8951EBFF5 for ; Wed, 9 Feb 2011 09:21:28 +0000 (UTC) Received: by ewy24 with SMTP id 24so3424609ewy.13 for ; Wed, 09 Feb 2011 01:21:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=b6LCsRJqSqv1COoceYKqHJaWxo0IqKcSzl9ANPcAR0U=; b=O3FlSX5Eum+0ECj4EKSh1j4aaenki/25YKJz/jNCLuUvpL1diMBV7gIgSNl60Ru/vn AWORtv6y17UN3VWMGr9HOf872z4EKuXuWVy2Gvd0AxX/cZUcU2X+IOc3kDhRrNqzFENE 09gBERXGUGER7/NO+o9vIgFjULJf4g4w6DxcM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=Efg8ThT7jAK38ns0RZBjWLDQ74I7lk6PnFRsNUfoLkISF3L1PNklLsHxJb/ZEVzbkY 2fJMMc9fMhCCABko2WW3V/Fa6iZ9K5mt4EuH5Z3g1x4Js0kghdczo9Fg/iAeJmCp1eUc DREBaf5wEyhRam6XSSQNxb9kfCadj7ovbOghg= Received: by 10.213.33.206 with SMTP id i14mr1397956ebd.80.1297243287255; Wed, 09 Feb 2011 01:21:27 -0800 (PST) Received: from localhost.localdomain (81-234-103-100-no112.tbcn.telia.com [81.234.103.100]) by mx.google.com with ESMTPS id b52sm72598eei.1.2011.02.09.01.21.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Feb 2011 01:21:26 -0800 (PST) From: Mika Havela To: alpine-devel@lists.alpinelinux.org Cc: Mika Havela Subject: [alpine-devel] [PATCH] Bugfix: If hostname -f does not work, then ssl creation will break and acf won't work Date: Wed, 9 Feb 2011 10:21:15 +0100 Message-Id: <1297243275-14791-1-git-send-email-mika.havela@gmail.com> X-Mailer: git-send-email 1.7.0.4 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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.0.4 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---