diff options
author | jdolecek <jdolecek> | 2002-05-07 14:11:59 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2002-05-07 14:11:59 +0000 |
commit | 3770042877aaf3984d1f26281aa896617d501cd7 (patch) | |
tree | 519c79afe7470ec40b455e4b02e1122a209bc69d /chat/vicq/patches | |
parent | 652fd2d21ec00ac71868df0d38a77564ba5cba92 (diff) | |
download | pkgsrc-3770042877aaf3984d1f26281aa896617d501cd7.tar.gz |
use log_path without trailing /, so that mkdir(2) succeeds when
vicq is creating the directory
Diffstat (limited to 'chat/vicq/patches')
-rw-r--r-- | chat/vicq/patches/patch-ab | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/chat/vicq/patches/patch-ab b/chat/vicq/patches/patch-ab new file mode 100644 index 00000000000..5ea19636a55 --- /dev/null +++ b/chat/vicq/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1 2002/05/07 14:11:59 jdolecek Exp $ + +--- vicq.orig Tue May 7 15:59:52 2002 ++++ vicq Tue May 7 16:01:36 2002 +@@ -2011,7 +2011,7 @@ + $config{log_path} = expand_file($config{log_path}); + $config{log_path}.='/' unless $config{log_path}=~/\/$/; + }else{ +- $config{log_path}="$ENV{HOME}/.vicq/history/"; ++ $config{log_path}="$ENV{HOME}/.vicq/history"; + } + unless( -e $config{log_path} || $config{log_path} eq $ENV{HOME}) + { +@@ -2495,7 +2495,7 @@ + $uin =~ s/\033\[.m//g; + + my $fname=($config{log_type}=~/a/)?'vicq.log':"$uin.log"; +- open LOG,">> $config{log_path}$fname" or warn "Can't open file $config{log_path}$fname"; ++ open LOG,">> $config{log_path}/$fname" or warn "Can't open file $config{log_path}/$fname"; + print LOG "--[$format $now_string\n"; + print LOG $message; + print LOG "\n" if $config{log_type}=~/n/; +@@ -2836,7 +2836,7 @@ + my $pager = $ENV{'PAGER'} || 'less -R'; + my $home = $ENV{HOME}; + my $fname=($config{log_type}=~/a/)?'vicq.log':"$uin.log"; +- if(!(open LOG,"< $config{log_path}$fname")) ++ if(!(open LOG,"< $config{log_path}/$fname")) + { + print "No history file for $uin\n"; + return; |