RunDir — specify directory containing runtime files
Specify the directory containing "runtime" information.
This directory is similar to /var/run/
in the Unix filesystem. Examples of files that you will encounter in there
are the global .structure file (see
DumpStructure), .pid and
mode. files and Interchange cronjob files (see Jobs).
Interchange 5.7.0:
Source: lib/Vend/Config.pm
Line 3821 (context shows lines 3821-3828)
sub parse_root_dir {
my($var, $value) = @_;
return '' unless $value;
$value = "$Global::VendRoot/$value"
unless file_name_is_absolute($value);
$value =~ s./+$..;
return $value;
}
Source: lib/Vend/Config.pm
Line 3863 (context shows lines 3863-3884)
sub parse_relative_dir {
my($var, $value) = @_;
if ($Global::NoAbsolute) {
# sanity check on filenames
if (file_name_is_absolute($value)) {
config_error('Absolute path %s not allowed in %s directive',
$value, $var)
}
if ($value =~ m#^\.\./.*\.\.#) {
config_error('Path %s outside of catalog directory not allowed in %s directive',
$value, $var)
}
}
$C->{Source}{$var} = $value;
$value = "$C->{VendRoot}/$value"
unless file_name_is_absolute($value);
$value =~ s./+$..;
$value;
}