freebsd-dev/sbin/ldconfig
Konstantin Belousov 3ede04c78c ldconfig(8): check for no-args command line after options are parsed
Default action for ldconfig is specified as -R AKA 'append', and for
no-args (without options changing default actions), ldconfig should
append empty list of directories to current list.  But because the check
was done before options were parsed out, presence of any option turned
off default rescan.

As result, innocently-looked commands like `ldconfig -v' were interpreted
as setting directory hints list to one specified on the command line,
i.e. empty.

Reported by:	https://github.com/mesonbuild/meson/issues/9592
Reviewed by:	emaste
Tested by:	jbeich
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33058
2021-11-25 01:55:04 +02:00
..
elfhints.c ldconfig: start of cleanup 2021-11-25 01:55:03 +02:00
ldconfig.8 ldconfig(8): nostd/-s does nothing 2021-11-25 01:55:03 +02:00
ldconfig.c ldconfig(8): check for no-args command line after options are parsed 2021-11-25 01:55:04 +02:00
ldconfig.h ldconfig: start of cleanup 2021-11-25 01:55:03 +02:00
Makefile ldconfig: use libexec/rtld-elf/rtld_paths.h 2021-11-25 01:55:04 +02:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00