Allow man to parse MANLOCALES but not to store it
This commit is contained in:
parent
14a4cc52b1
commit
782625f5a2
@ -281,7 +281,6 @@ get_dirlist ()
|
|||||||
fprintf (stderr, "found manpath map %s --> %s\n",
|
fprintf (stderr, "found manpath map %s --> %s\n",
|
||||||
dlp->bin, dlp->mandir);
|
dlp->bin, dlp->mandir);
|
||||||
}
|
}
|
||||||
#ifdef MAIN
|
|
||||||
else if (!strncmp ("MANLOCALES", bp, 10))
|
else if (!strncmp ("MANLOCALES", bp, 10))
|
||||||
{
|
{
|
||||||
if ((p = strchr (bp, ' ')) == NULL &&
|
if ((p = strchr (bp, ' ')) == NULL &&
|
||||||
@ -301,6 +300,7 @@ get_dirlist ()
|
|||||||
*p-- = '\0';
|
*p-- = '\0';
|
||||||
} while (p >= bp && (*p == ' ' || *p == '\t'));
|
} while (p >= bp && (*p == ' ' || *p == '\t'));
|
||||||
|
|
||||||
|
#ifdef MAIN
|
||||||
if (man_locales != NULL)
|
if (man_locales != NULL)
|
||||||
free (man_locales);
|
free (man_locales);
|
||||||
|
|
||||||
@ -308,12 +308,11 @@ get_dirlist ()
|
|||||||
fclose(config);
|
fclose(config);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif /* MAIN */
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
fprintf (stderr, "found man locales: %s\n",
|
fprintf (stderr, "found man locales: %s\n", bp);
|
||||||
man_locales);
|
|
||||||
}
|
}
|
||||||
#endif /* MAIN */
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gripe_reading_mp_config (config_file);
|
gripe_reading_mp_config (config_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user