busybox/miscutils
Ron Yorston 3c6f3336e1 man: don't skip default path which appears in config file
If the MANPATH environment variable isn't set a provisional default
path of /usr/man is placed in man_path_list.  This is only used if a
configuration file doesn't contain an alternative path.

If a configuration file lists the default path first:

   MANPATH /usr/man:/usr/share/man

add_MANPATH() sees that the default entry is already present and skips
it.  As a result man_path_list only contains the second and subsequent
components of the configured MANPATH.

In such cases the path should not be skipped.

function                                             old     new   delta
add_MANPATH                                          170     183     +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0)               Total: 13 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2019-03-26 17:46:21 +01:00
..
adjtimex.c config: update size information 2018-12-28 03:20:17 +01:00
bbconfig.c libarchive: add a function to unpack embedded data 2018-11-02 14:14:51 +01:00
bc.c bc: implement pass-by-reference code from upstream 2019-01-25 16:22:15 +01:00
beep.c config: update size information 2018-12-28 03:20:17 +01:00
chat.c config: update size information 2018-12-28 03:20:17 +01:00
Config.src restore documentation on the build config language 2018-06-06 15:16:48 +02:00
conspy.c getopt32: remove applet_long_options 2017-08-08 17:09:40 +02:00
crond.c do not duplicate CONFIG_PID_FILE_PATH and ".pid" strings 2019-03-17 19:48:39 +01:00
crontab.c config: update size information 2018-12-28 03:20:17 +01:00
dc.c dc: fix "small dc" to have standard command line API 2018-12-08 18:59:07 +01:00
devfsd.c randomconfig fixes 2018-12-27 18:03:20 +01:00
devmem.c whitespace and comment format fixes, no code changes 2017-10-05 14:40:24 +02:00
fbsplash.c config: update size information 2018-12-28 03:20:17 +01:00
fbsplash.cfg fbsplash: cosmetic comment and Config text fixes; rename .ini -> .cfg 2008-03-26 15:12:11 +00:00
flash_eraseall.c config: update size information 2018-12-28 03:20:17 +01:00
flash_lock_unlock.c whitespace and comment format fixes, no code changes 2017-10-05 15:33:28 +02:00
flashcp.c config: update size information 2018-12-28 03:20:17 +01:00
hdparm.c config: update size information 2018-12-28 03:20:17 +01:00
hexedit.c config: update size information 2018-12-28 03:20:17 +01:00
i2c_tools.c i2c_tools.c: i2ctransfer 2019-02-11 12:34:13 +01:00
inotifyd.c config: update size information 2018-12-28 03:20:17 +01:00
Kbuild.src Remove trailing empty lines 2016-11-23 10:43:39 +01:00
less.c config: update size information 2018-12-28 03:20:17 +01:00
lsscsi.c config: update size information 2018-12-28 03:20:17 +01:00
makedevs.c config: update size information 2018-12-28 03:20:17 +01:00
man.c man: don't skip default path which appears in config file 2019-03-26 17:46:21 +01:00
microcom.c config: update size information 2018-12-28 03:20:17 +01:00
mt.c config: update size information 2018-12-28 03:20:17 +01:00
nandwrite.c config: update size information 2018-12-28 03:20:17 +01:00
partprobe.c config: update size information 2018-12-28 03:20:17 +01:00
raidautorun.c config: update size information 2018-12-28 03:20:17 +01:00
readahead.c config: update size information 2018-12-28 03:20:17 +01:00
rfkill.c config: update size information 2018-12-28 03:20:17 +01:00
runlevel.c config: more tweaks 2018-12-28 17:52:43 +01:00
rx.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
setfattr.c config: update size information 2018-12-28 03:20:17 +01:00
setserial.c config: update size information 2018-12-28 03:20:17 +01:00
strings.c config: update size information 2018-12-28 03:20:17 +01:00
time.c config: update size information 2018-12-28 03:20:17 +01:00
ts.c ts: do call localtime() when neither -s nor -i specified 2019-03-26 11:51:21 +01:00
ttysize.c config: update size information 2018-12-28 03:20:17 +01:00
ubi_tools.c config: update size information 2018-12-28 03:20:17 +01:00
ubirename.c config: update size information 2018-12-28 03:20:17 +01:00
volname.c config: update size information 2018-12-28 03:20:17 +01:00
watchdog.c do not duplicate CONFIG_PID_FILE_PATH and ".pid" strings 2019-03-17 19:48:39 +01:00