From 321ff6d4c721f2f699c57874335ce792c456a19a Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Thu, 19 Feb 2009 02:50:38 -0500 Subject: [PATCH] fail if hostname can not be determined in import_key --- src/share/mh/import_key | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/mh/import_key b/src/share/mh/import_key index cca40fa..bca7319 100644 --- a/src/share/mh/import_key +++ b/src/share/mh/import_key @@ -21,7 +21,7 @@ hostName="$1" # use the default hostname if not specified if [ -z "$hostName" ] ; then - hostName=$(hostname -f) + hostName=$(hostname -f) || failure "Could not determine hostname." # test that the domain is not obviously illegitimate domain=${foo##*.} case $domain in -- 2.26.2