diff options
author | Colin Watson <cjwatson@debian.org> | 2019-01-26 12:55:56 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-01-26 12:55:56 +0000 |
commit | 199a6e80e7b4baa27e195f2c1120c45df9ea4e67 (patch) | |
tree | d3a6b7b51caa32a576ca2061590c11d7514c178e /include | |
parent | 4f07b2663de8cb7e85c779b9d2c3142134847b35 (diff) |
Remove arbitrary limit on manpath size
Fixes Savannah bug #50324.
* bootstrap.conf (gnulib_modules): Add hash-pjw-bare, linkedhash-list,
stdbool, and xlist.
* include/manconfig.h.in (MAXDIRS): Remove.
* src/manp.c (tmplist): Remove.
(string_equals, string_hash, string_free): New functions.
(gripe_overlong_list): Remove.
(insert_override_dir, get_manpath_from_path, add_expanded_dir_to_list,
add_dir_to_list, add_man_subdirs, add_dir_to_path_list, create_pathlist,
free_pathlist): Port manpath list handling to gl_list_t.
* src/catman.c (main): Likewise.
* src/man.c (do_global_apropos, local_man_loop, locate_page_in_manpath,
main): Likewise.
* src/mandb.c (main): Likewise.
* src/whatis.c (suitable_manpath, search, main): Likewise.
* src/zsoelim.l (<<EOF>>, zsoelim_parse_file, zsoelim_open_file,
zsoelim_stdin, zsoelim_stdin_data_new): Likewise.
* src/zsoelim_main.c (main): Likewise.
* src/manp.h (create_pathlist, free_pathlist): Update prototypes.
* src/zsoelim.h (zsoelim_open_file, zsoelim_parse_file,
zsoelim_stdin_data_new): Likewise.
* NEWS: Document this.
Diffstat (limited to 'include')
-rw-r--r-- | include/manconfig.h.in | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/manconfig.h.in b/include/manconfig.h.in index 5c3ad648..db24db78 100644 --- a/include/manconfig.h.in +++ b/include/manconfig.h.in @@ -75,10 +75,6 @@ /* #define FAVOUR_STRAYCATS */ -/* The maximum number of manual page hierarchies expected in the manpath. - Also the maximum amount of non-comment lines in the config file. */ -#define MAXDIRS 128 - /* CATMODE is the mode of the formatted cat pages that we create. The man-db package can be run in 4 main modes, 3 of which are relatively secure and allow the cats to be non world writable. The `wide open' mode requires |