diff options
| author | fukachan <fukachan> | 2002-05-27 08:45:41 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-05-27 08:45:41 +0000 |
| commit | 2bc2598778ca0e95d0c9d5e96ef379a466d534b4 (patch) | |
| tree | 741fd049bfdeef1d9f78d343da5bdc0ff7316b12 /fml/lib/FML/Process | |
| parent | 000e2837f497a98faa8e9967fa59cecaa0fa265e (diff) | |
| download | fml8-2bc2598778ca0e95d0c9d5e96ef379a466d534b4.tar.gz fml8-2bc2598778ca0e95d0c9d5e96ef379a466d534b4.tar.bz2 fml8-2bc2598778ca0e95d0c9d5e96ef379a466d534b4.zip | |
implement is_default_domain()
Diffstat (limited to 'fml/lib/FML/Process')
| -rw-r--r-- | fml/lib/FML/Process/Utils.pm | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm index 2b080e72..6b41a6c6 100644 --- a/fml/lib/FML/Process/Utils.pm +++ b/fml/lib/FML/Process/Utils.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Utils.pm,v 1.20 2002/05/13 14:22:53 fukachan Exp $ +# $FML: Utils.pm,v 1.21 2002/05/25 06:58:24 fukachan Exp $ # package FML::Process::Utils; @@ -215,6 +215,25 @@ sub default_domain } +# Descriptions: check if $domain is the default one or not. +# This is used to check $domain is a virtual domain or not. +# Arguments: OBJ($curproc) STR($domain) +# Side Effects: none +# Return Value: NUM(1 or 0) +sub is_default_domain +{ + my ($curproc, $domain) = @_; + my $default_domain = $curproc->default_domain(); + + if ("\L$domain\E" eq "\L$default_domain\E") { + return 1; + } + else { + return 0; + } +} + + =head2 executable_prefix() return executable prefix such as "/usr/local". |
