Mail-Milter-Authentication
view release on metacpan or search on metacpan
lib/Mail/Milter/Authentication.pm view on Meta::CPAN
_warn("No runas details supplied, could not drop privs - be careful!");
}
# Note, Chroot requires a chroot environment which is out of scope at present
if ( $config->{'error_log'} ) {
if ( ! -e $config->{'error_log'} ) {
open my $outf, '>', $config->{'error_log'} || die "Could not create error log: $!\n";;
close $outf;
}
if ( $user ) {
my ($login,$pass,$uid,$gid) = getpwnam($user);
chown $uid, $gid, $config->{'error_log'};
}
}
if ( exists( $config->{'chroot'} ) ) {
_warn('Chroot to ' . $config->{'chroot'});
$srvargs{'chroot'} = $config->{'chroot'};
}
}
else {
_warn("Not running as root, could not drop privs - be careful!");
}
( run in 1.674 second using v1.01-cache-2.11-cpan-71847e10f99 )