summaryrefslogtreecommitdiff
path: root/lib/sbin/CSTUtils.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-08-19 19:07:08 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-08-19 19:07:08 +0000
commite44938759e45f0c46eb8e314d7ead9921fe5e7d9 (patch)
tree510a55256439993cfdd01dfa39e0bf6e10796698 /lib/sbin/CSTUtils.pl
parentf5444c27fa3abc5fd94a17ffbd64df7f776ba1ec (diff)
Document and check maximum length of a thorn name
Fixes Cactus/882 git-svn-id: http://svn.cactuscode.org/flesh/trunk@2970 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CSTUtils.pl')
-rw-r--r--lib/sbin/CSTUtils.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sbin/CSTUtils.pl b/lib/sbin/CSTUtils.pl
index c7b899dd..7815e4d4 100644
--- a/lib/sbin/CSTUtils.pl
+++ b/lib/sbin/CSTUtils.pl
@@ -248,6 +248,12 @@ sub TestName
$valid = 0;
}
+ if ($thorn && length($name)>27)
+ {
+ print STDERR "Thorn names must be 27 characters or less!\n\n";
+ $valid = 0;
+ }
+
if ($thorn && $name eq "doc")
{
print STDERR "Thorn name doc is not allowed!\n\n";