mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make "ldconfig" with no arguments behave the same as "ldconfig -R".
Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
This commit is contained in:
parent
beea813ee4
commit
97333b9e84
2 changed files with 4 additions and 1 deletions
|
|
@ -97,6 +97,7 @@ Generate the hints for ELF format shared libraries.
|
|||
Rescan the previously configured directories. This opens the previous hints
|
||||
file and fetches the directory list from the header. Any additional pathnames
|
||||
on the command line are also processed.
|
||||
This is the default action when no parameters are given.
|
||||
.It Fl f Ar hints_file
|
||||
Read and/or update the specified hints file, instead of the standard file.
|
||||
This option is provided primarily for testing.
|
||||
|
|
|
|||
|
|
@ -115,7 +115,9 @@ char *argv[];
|
|||
errx(1, "unknown object format \"%s\"", objformat);
|
||||
|
||||
hints_file = is_aout ? _PATH_LD_HINTS : _PATH_ELF_HINTS;
|
||||
while ((c = getopt(argc, argv, "Rf:mrsv")) != -1) {
|
||||
if (argc == 1)
|
||||
rescan = 1;
|
||||
else while((c = getopt(argc, argv, "Rf:mrsv")) != -1) {
|
||||
switch (c) {
|
||||
case 'R':
|
||||
rescan = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue