From b7dd97408319ce1d389c8f22cb94feba228565e3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 18 Feb 2009 19:21:49 +0100 Subject: Adding checks for exceeding lenght of the iso header strings. --- functions/defaults.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/functions/defaults.sh b/functions/defaults.sh index e9e3d144a..3b7b02d79 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -849,4 +849,24 @@ Check_defaults () ;; esac fi + + if [ "$(echo ${LH_ISO_APPLICATION} | wc -c)" -ge 129 ] + then + Echo_error "You have specified a too long string for iso application, the maximum lenght is 128 characters." + fi + + if [ "$(echo ${LH_ISO_PREPARER} | wc -c)" -ge 129 ] + then + Echo_error "You have specified a too long string for iso preparer, the maximum lenght is 128 characters." + fi + + if [ "$(echo ${LH_ISO_PUBLISHER} | wc -c)" -ge 129 ] + then + Echo_error "You have specified a too long string for iso publisher, the maximum lenght is 128 characters." + fi + + if [ "$(echo ${LH_ISO_VOLUME} | wc -c)" -ge 33 ] + then + Echo_error "You have specified a too long string for iso volume, the maximum lenght is 32 characters." + fi } -- cgit v1.2.3