summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-19 02:50:38 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-19 02:50:38 -0500
commit321ff6d4c721f2f699c57874335ce792c456a19a (patch)
tree4bfef9dedc9490ea41ccd3535afd2521da37fbcd
parent2ab50bee3f2cc4030cb4555b6c9644e3c206141e (diff)
fail if hostname can not be determined in import_key
-rw-r--r--src/share/mh/import_key2
1 files changed, 1 insertions, 1 deletions
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