Fix crash on invalid command line argument
commit93082d6eb84a086b02c7a8607f2553d5d9d0a93c
authorSamanta Navarro <ferivoz@riseup.net>
Fri, 11 Jun 2021 11:52:31 +0000 (11 11:52 +0000)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 1 Jul 2021 06:52:42 +0000 (1 09:52 +0300)
tree3b26204e84ac11a0e2f5e41a445ec9f000add62d
parente5bc23efcc90700710f97379d3116febc5705e19
Fix crash on invalid command line argument

The copy_string_unquote function does not handle arguments which only
consist of a single quote. A string is only quoted if two quoting
characters exist.

How to reproduce:

tar --checkpoint-action exec=\"
src/checkpoint.c