|
发表于 2008-2-18 11:42:53
|
显示全部楼层
$tmpdir哪儿来的。。。
Post by trinity;382173
错误信息如下:
Use of uninitialized value in string eq at /usr/local/bin/smime_keys line 937.
Use of uninitialized value in string eq at /usr/local/bin/smime_keys line 942.
代码如下,部分略:
sub newfile ($;$$) {
# returns a file name which does not exist for tmp file creation
my $filename = shift;
my $option = shift;
937-> if (! $tmpdir and ($option eq "temp")) {
$tmpdir = mutt_Q 'tmpdir';
$tmpdir = newfile("$tmpdir/smime");
mkdir $tmpdir, 0700 || die "Can't create $tmpdir: $!\n";
}
942-> $filename = "$tmpdir/$filename" if ($option eq "temp");
my $newfilename = $filename;
my $count = 0;
while (-e $newfilename) {
$newfilename = "$filename.$count";
$count++;
} |
|