Re: "-otaperscan=XXX" override prevents reading of CONFIG/amanda.conf

Nathan Stratton Treadway <[email protected]> Mon, 13 Nov 2017 00:07:03 -0500
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
On Fri, Nov 10, 2017 at 08:14:31 -0500, Jean-Louis Martineau wrote:
> Nathan,
> 
> You are too late, I say that problem last week and started to work on a fix.
> I just finished the patch, can you try it?

I rebuilt with this patch, and it does indeed fix the problem with
"-otaperscan=":

=====
root@tumhalad:~# amgetconf TestBackup taperscan -otaperscan=taper_oldest
taper_oldest
=====

(The patch suppresses the duplicate error messages from the override
settings as well:
=====
root@tumhalad:~# amgetconf TestBackup taperscan -otaperscan=bad
argument '"bad"': Unknown taperscan named: bad
amgetconf: errors processing config file at /usr/sbin/amgetconf line 363.
=====
)


I haven't found any problems caused by the patch in quick post-install
testing; I'll double check that all the cron jobs run okay tomorrow as
well.


							Nathan


----------------------------------------------------------------------------
Nathan Stratton Treadway  -  [email protected]  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239