Re: "./Tie/StdHash.pm: Permission denied at" error messages

Jean-Louis Martineau <[email protected]> Wed, 19 Jul 2017 08:16:04 -0400
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
I committed the patch to the 3_4, 3_5 and trunk branches

Jean-Louis

On 22/06/17 04:28 PM, Nathan Stratton Treadway wrote:
> I recently ran into these "./Tie/StdHash.pm: Permission denied at" error
> messages (see original message from Aug 2016 below) running Amanda 3.4.5
> on Ubuntu Xenial.
>
> In researching the problem, I found
> https://bugzilla.redhat.com/show_bug.cgi?id=1257686#c9 
> <https://bugzilla.redhat.com/show_bug.cgi?id=1257686#c9>
> , which seems to have been in reponse to this original messag, but I
> don't see any on-list followup.
>
> That bug-comment references a "patch from upstream", which was
> apparently applied to the Redhat 3.3.9 package at that time. The core
> of that patch is the following change to
> .../perl/Amanda/Config/FoldingHash.pm :
>
> +-use base 'Tie::StdHash';
> ++eval {require 'Tie::StdHash';};
> ++our @ISA = 'Tie::StdHash';
>
> However, this change doesn't appear to have been included in Amanda 3.4
> (nor in the origin/3_3 branch of the 
> git://github.com/zmanda/amanda.git 
> <git://github.com/zmanda/amanda.git>
> repo).
>
> The patch still seems to be included in the latest version of Fedora:
> http://pkgs.fedoraproject.org/cgit/rpms/amanda.git/tree/?h=f26 
> <http://pkgs.fedoraproject.org/cgit/rpms/amanda.git/tree/?h=f26>
> (see "amanda-3.3.9-hash-permission.patch" on that page), so I was
> wondering if there is some reason it hasn't been incorporated upstream?
>
> (As described in the following bug report, the problem is that if the
> Amanda user can't read the current working directory, Amanda perl
> programs [incorrectly] abort with the message about "permission denied"
> for StdHash.pm 
> <http://StdHash.pm>,
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775612 
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775612>
> )
>
> Thanks.
>
> Nathan
>
>
> On Tue, Aug 02, 2016 at 07:14:23 -0400, Josef Ridky wrote:
> > Hi
> >
> > I was requested to solve this problem so I am contacting you as upstrem:
> >
> > ---
> >
> > bash-4.3$ amdump normal
> > Can't locate Tie/StdHash.pm: ./Tie/StdHash.pm: Permission denied at 
> /usr/share/perl5/base.pm line 99.
> > ...propagated at /usr/share/perl5/base.pm line 108.
> > BEGIN failed--compilation aborted at 
> /usr/lib64/perl5/vendor_perl/Amanda/Config/FoldingHash.pm line 3.
> > Compilation failed in require at 
> /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 753.
> > BEGIN failed--compilation aborted at 
> /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 753.
> > Compilation failed in require at /usr/sbin/amdump line 29.
> > BEGIN failed--compilation aborted at /usr/sbin/amdump line 29.
> >
> > ---
> >
> > The problem is, that in Perl 5.20 has been removed file 
> Tie/StdHash.pm and has been "transferred" to Tie/Hash.pm.
> > So is correct to use "use base 'Tie::StdHash' in FoldingHash.pm 
> <http://FoldingHash.pm> 
> on line 3? Will removing of this line solve described problem?
> >
> > Best regards
> >
> > Josef Ridky
> > Associate Software Engineer
> > Core Services Team
> > Red Hat Czech, s.r.o.
>
>
> ----------------------------------------------------------------------------
> Nathan Stratton Treadway - [email protected] - Mid-Atlantic region
> Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ 
> <http://www.ontko.com/>
> GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt 
> <http://www.ontko.com/~nathanst/gpg_key.txt> ID: 
> 1023D/ECFB6239
> Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239
This message is the property of CARBONITE, INC. and may contain confidential or privileged information.
If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone.  Instead, destroy it and notify me by reply e-mail