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 | |
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')
-rw-r--r-- | chat/vicq/distinfo | 3 | ||||
-rw-r--r-- | chat/vicq/patches/patch-ab | 31 |
2 files changed, 33 insertions, 1 deletions
diff --git a/chat/vicq/distinfo b/chat/vicq/distinfo index 5257dada4f5..89d538fa4ec 100644 --- a/chat/vicq/distinfo +++ b/chat/vicq/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.3 2002/05/07 13:43:40 jdolecek Exp $ +$NetBSD: distinfo,v 1.4 2002/05/07 14:11:59 jdolecek Exp $ SHA1 (vicq-0.4.tar.bz2) = 49491c453b8e56ea0e1a424510af481fc2b22bcc Size (vicq-0.4.tar.bz2) = 54103 bytes SHA1 (patch-aa) = e7896096e45fe7cbea7ce6d7b3af976691910686 +SHA1 (patch-ab) = af3c3a53b9b965dba0f7753a935ec820d76990e3 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; |