summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-09-22 13:17:10 +0000
committerfukachan <fukachan>2001-09-22 13:17:10 +0000
commitcbd11a549da55b229a963d400fe5b67fb0830ee1 (patch)
tree9368b14f32af1b354566a231d6ae4b35de794246
parentcfa4e78966cbfc89791d2a6bcf79d3a0a290bb27 (diff)
downloadfml8-cbd11a549da55b229a963d400fe5b67fb0830ee1.tar.gz
fml8-cbd11a549da55b229a963d400fe5b67fb0830ee1.tar.bz2
fml8-cbd11a549da55b229a963d400fe5b67fb0830ee1.zip
modified to use File::Spec
-rw-r--r--fml/lib/FML/Command/Admin/edit.pm5
-rw-r--r--fml/lib/TinyScheduler.pm5
2 files changed, 6 insertions, 4 deletions
diff --git a/fml/lib/FML/Command/Admin/edit.pm b/fml/lib/FML/Command/Admin/edit.pm
index cb49663a..1574fab9 100644
--- a/fml/lib/FML/Command/Admin/edit.pm
+++ b/fml/lib/FML/Command/Admin/edit.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: edit.pm,v 1.2 2001/08/26 07:59:03 fukachan Exp $
+# $FML: edit.pm,v 1.1.1.1 2001/08/26 08:01:04 fukachan Exp $
#
package FML::Command::Admin::edit;
@@ -50,8 +50,9 @@ sub process
my $myname = $optargs->{ args }->{ myname };
# ML's home directory
+ use File::Spec;
my $ml_home_dir = $optargs->{ 'args' }->{ 'ml_home_dir' };
- my $config_cf = $ml_home_dir."/config.cf";
+ my $config_cf = File::Spec->catfile($ml_home_dir, "config.cf");
use FML::Config;
my $c = new FML::Config;
diff --git a/fml/lib/TinyScheduler.pm b/fml/lib/TinyScheduler.pm
index 043e9e74..defbe39a 100644
--- a/fml/lib/TinyScheduler.pm
+++ b/fml/lib/TinyScheduler.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: TinyScheduler.pm,v 1.6 2001/06/17 08:57:10 fukachan Exp $
+# $FML: TinyScheduler.pm,v 1.7 2001/06/28 09:06:43 fukachan Exp $
#
package TinyScheduler;
@@ -72,7 +72,8 @@ sub tmpfile
croak("Hmm, unsafe ? I cannot write $dir, stop\n");
}
- $self->{ _tmpfile } = $tmpdir ."/$$.html";
+ use File::Spec;
+ $self->{ _tmpfile } = File::Spec->catfile($tmpdir,"$$.html");
return $self->{ _tmpfile };
}