ports/mail/majordomo/patches/patch-medit

12 lines
379 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- medit.orig Mon Apr 28 20:38:05 1997
+++ medit Wed Feb 2 13:31:41 2011
@@ -19,7 +19,7 @@ $ENV{'PATH'} = "/bin:/usr/bin:/usr/ucb";
# Read and execute the .cf file
$cf = $ENV{"MAJORDOMO_CF"} || "/etc/majordomo.cf";
if ($ARGV[0] eq "-C") {
- $cf = $ARGV[1];
+ $cf = "$ENV{'MAJORDOMO_CFDIR'}/$ARGV[1]" unless $ARGV[1] =~ /\//;
shift(@ARGV);
shift(@ARGV);
}