[SCM] Debian Live build scripts branch, master, updated. 1.0.3-2-16-g945a877
Daniel Baumann
daniel at debian.org
Wed Feb 18 18:24:21 UTC 2009
The following commit has been merged in the master branch:
commit 945a87774daf43ce66bd462df95c954e6781ca9f
Author: Daniel Baumann <daniel at debian.org>
Date: Wed Feb 18 19:21:49 2009 +0100
Adding checks for exceeding lenght of the iso header strings.
diff --git a/functions/defaults.sh b/functions/defaults.sh
index e9e3d14..3b7b02d 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
}
--
Debian Live build scripts
More information about the debian-live-changes
mailing list