Fix coredump on FreeBSD when TAR_OPTIONS is set
commit6167c23e22236d7872295089ad4e197697fadd97
authorSergey Poznyakoff <gray@gnu.org>
Tue, 10 Nov 2015 16:25:47 +0000 (10 18:25 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Tue, 10 Nov 2015 16:25:47 +0000 (10 18:25 +0200)
tree9764e874bc2a25c9f6bccf6f25b98d906b86caa1
parent5e2a1d5b3801d016f51b3f4c476d275a6adff5d7
Fix coredump on FreeBSD when TAR_OPTIONS is set

* src/tar.c (parse_default_options): Use program_name instead of
program_invocation_short_name.  On some systems the latter is NULL when
the function is called, which causes coredumps.
(tar_set_quoting_style): Likewise.
* src/names.c: Likewise.
src/names.c
src/tar.c