amrecover quoted strings

Ian Turner <[email protected]> Thu, 12 Apr 2018 14:19:49 -0400
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
Hi folks,

I've noticed a bug in amrecover. Strings can be quoted with double
quotes (""), but the quotes are not stripped before being used. Thus, in
practice, strings with spaces cannot be used in amrecover.

You can see this in action with for example setdevice (note the
doubled-up quotes on the second response).

amrecover> setdevice file:/media/vectro/Backup
3/amanda-volumes/vectro.org-backup3-vol1
Invalid argument
amrecover> setdevice "file:/media/vectro/Backup
3/amanda-volumes/vectro.org-backup3-vol1"
Using tape ""file:/media/vectro/Backup
3/amanda-volumes/vectro.org-backup3-vol1"".
Tape server unspecified, assumed to be localhost.

I would argue the bug is on line 149 of uscan.l, which just returns the
quote string with quotes and all.

Regards,

Ian