summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-23 03:38:41 +0000
committerache <ache@FreeBSD.org>1999-11-23 03:38:41 +0000
commit782625f5a235da3b3b9e89909bd40bfa81b75c67 (patch)
treed2e60946655bb47cef3cbc6ebd8fe15c3fbfcfd6 /gnu
parent14a4cc52b13d77dcb9dee0d03a4d739c58fa2c5c (diff)
downloadFreeBSD-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.c7
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);
OpenPOWER on IntegriCloud