Subject: | GnuPG .09 in checks for write access in home directory when it's not needed |
Hello,
I'm using GnuPG .09. I was just reviewing the new() method, and found this:
if ($args{homedir}) {
croak ( "Invalid home directory: $args{homedir}\n")
unless -d $args{homedir} && -w _ && -x _;
$self->{homedir} = $args{homedir};
}
The code is checking for write access to the home directory here, although it is not needed for encryption. The code could be modified to only check for write access if it was needed (which may not be in the new() function).