diff options
author | ache <ache@FreeBSD.org> | 1999-11-23 03:38:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-11-23 03:38:41 +0000 |
commit | 782625f5a235da3b3b9e89909bd40bfa81b75c67 (patch) | |
tree | d2e60946655bb47cef3cbc6ebd8fe15c3fbfcfd6 /gnu | |
parent | 14a4cc52b13d77dcb9dee0d03a4d739c58fa2c5c (diff) | |
download | FreeBSD-src-782625f5a235da3b3b9e89909bd40bfa81b75c67.zip FreeBSD-src-782625f5a235da3b3b9e89909bd40bfa81b75c67.tar.gz |
Allow man to parse MANLOCALES but not to store it
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/man/manpath/manpath.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/usr.bin/man/manpath/manpath.c b/gnu/usr.bin/man/manpath/manpath.c index 414ffd6..bdfbfc6 100644 --- a/gnu/usr.bin/man/manpath/manpath.c +++ b/gnu/usr.bin/man/manpath/manpath.c @@ -281,7 +281,6 @@ get_dirlist () fprintf (stderr, "found manpath map %s --> %s\n", dlp->bin, dlp->mandir); } -#ifdef MAIN else if (!strncmp ("MANLOCALES", bp, 10)) { if ((p = strchr (bp, ' ')) == NULL && @@ -301,6 +300,7 @@ get_dirlist () *p-- = '\0'; } while (p >= bp && (*p == ' ' || *p == '\t')); +#ifdef MAIN if (man_locales != NULL) free (man_locales); @@ -308,12 +308,11 @@ get_dirlist () fclose(config); return -1; } +#endif /* MAIN */ if (debug) - fprintf (stderr, "found man locales: %s\n", - man_locales); + fprintf (stderr, "found man locales: %s\n", bp); } -#endif /* MAIN */ else { gripe_reading_mp_config (config_file); |