diff options
author | Colin Watson <cjwatson@debian.org> | 2018-05-29 05:58:47 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-05-29 06:10:44 +0100 |
commit | c150786d1ff2966406bd052c48ccca874f6749d5 (patch) | |
tree | 4b42b9c666829ed65174e751db46363ba52d85ae /bootstrap.conf | |
parent | 3b1ed1a73997b627b571df66f4b32af5d4be50ed (diff) |
Use Gnulib progname module
This lets us produce more accurate error messages when programs are
invoked with an absolute path.
* bootstrap.conf (gnulib_modules): Add progname.
* include/manconfig.h.in (program_name): Remove.
* src/accessdb.c (main): Call set_program_name rather than similar
hand-rolled code.
* src/catman.c (main): Likewise. Don't free program_name.
* src/globbing_test.c (main): Likewise.
* src/lexgrog_test.c (main): Likewise.
* src/man.c (main): Likewise. Don't free program_name.
* src/manconv_main.c (main): Likewise.
* src/mandb.c (main): Likewise. Don't free program_name.
* src/manpath.c (main): Likewise.
* src/tests/fspause.c (main): Likewise.
* src/whatis.c (main): Likewise.
* src/zsoelim_main.c (main): Likewise.
* src/man.c (manopt_to_env): Run program_name through base_name, since
that's no longer necessarily done up-front.
* src/whatis.c (main): Run program_name through base_name before
comparing it to APROPOS_NAME, since that's no longer necessarily done
up-front.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index b1980664..f42d511f 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -49,6 +49,7 @@ gnulib_modules=" nonblocking openat opendir + progname regex rename setenv |