summaryrefslogtreecommitdiff
path: root/fml/lib/FML
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-01-30 15:20:30 +0000
committerfukachan <fukachan>2002-01-30 15:20:30 +0000
commitce92eaa85ff6d5273e955fba57230b44685e3243 (patch)
treed2b86edb6f8710f33023d6cf530ec16ef39c6d37 /fml/lib/FML
parent9d0593255c3e4cc342f7fd33bd987d4200fdeacc (diff)
downloadfml8-ce92eaa85ff6d5273e955fba57230b44685e3243.tar.gz
fml8-ce92eaa85ff6d5273e955fba57230b44685e3243.tar.bz2
fml8-ce92eaa85ff6d5273e955fba57230b44685e3243.zip
use File::Spec
Diffstat (limited to 'fml/lib/FML')
-rw-r--r--fml/lib/FML/Process/CGI/Kernel.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/fml/lib/FML/Process/CGI/Kernel.pm b/fml/lib/FML/Process/CGI/Kernel.pm
index be5a6fd2..a120bd32 100644
--- a/fml/lib/FML/Process/CGI/Kernel.pm
+++ b/fml/lib/FML/Process/CGI/Kernel.pm
@@ -1,16 +1,17 @@
#-*- perl -*-
#
-# Copyright (C) 2001 Ken'ichi Fukamachi
+# Copyright (C) 2001,2002 Ken'ichi Fukamachi
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Kernel.pm,v 1.11 2001/12/23 11:37:08 fukachan Exp $
+# $FML: Kernel.pm,v 1.12 2001/12/23 11:39:46 fukachan Exp $
#
package FML::Process::CGI::Kernel;
use strict;
use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD);
use Carp;
+use File::Spec;
use FML::Process::Kernel;
use FML::Log qw(Log LogWarn LogError);
@@ -173,6 +174,9 @@ sub get_ml_list
my ($curproc, $args) = @_;
my $config = $curproc->{ config };
+ use File::Spec;
+ my $cf = '';
+
use DirHandle;
my $dh = new DirHandle $config->{ ml_home_prefix };
my @dirlist;
@@ -180,7 +184,8 @@ sub get_ml_list
while ($_ = $dh->read()) {
next if /^\./;
next if /^\@/;
- push(@dirlist, $_) if -f "$prefix/$_/config.cf";
+ $cf = File::Spec->catfile($prefix, $_, "config.cf");
+ push(@dirlist, $_) if -f $cf;
}
$dh->close;
@@ -230,7 +235,7 @@ Ken'ichi Fukamachi
=head1 COPYRIGHT
-Copyright (C) 2001 Ken'ichi Fukamachi
+Copyright (C) 2001,2002 Ken'ichi Fukamachi
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.