diff options
Diffstat (limited to 'lang/ruby18-base/patches/patch-gb')
-rw-r--r-- | lang/ruby18-base/patches/patch-gb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-gb b/lang/ruby18-base/patches/patch-gb new file mode 100644 index 00000000000..46de435175f --- /dev/null +++ b/lang/ruby18-base/patches/patch-gb @@ -0,0 +1,17 @@ +$NetBSD: patch-gb,v 1.1 2010/09/10 03:29:01 taca Exp $ + +--- ext/tk/sample/tkbiff.rb.orig 2007-02-12 23:01:19.000000000 +0000 ++++ ext/tk/sample/tkbiff.rb +@@ -12,7 +12,11 @@ if ARGV.length == 0 + if ENV['MAIL'] + $spool = ENV['MAIL'] + else +- $spool = '/var/spool/mail/' + ENV['USER'] ++ dir = '/var/mail' ++ unless FileTest.directory?(dir) ++ dir = '/var/spool/mail' ++ end ++ $spool = dir + '/' + ENV['USER'] + end + else + $spool = ARGV[0] |