diff options
Diffstat (limited to 'sbin/ldconfig/ldconfig.c')
-rw-r--r-- | sbin/ldconfig/ldconfig.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c index 07e5abc..76f8299 100644 --- a/sbin/ldconfig/ldconfig.c +++ b/sbin/ldconfig/ldconfig.c @@ -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; |